fix: replace text-decoration sub-properties with shorthand (0.16.4) (#59)

* fix: address CSS lint and source code warnings for plugin submission

- binary-manager.ts: remove redundant non-null assertion on version (already narrowed)
- styles.css: expand 3-digit hex to 6-digit (#000 -> #000000, #FFF -> #ffffff)
- styles.css: split text-decoration shorthand into text-decoration-line + text-decoration-style
  for better browser compatibility
- styles.css: remove !important by increasing selector specificity (.xterm .xterm-dim)
  and relying on already-higher specificity for .view-content overrides
- bump to 0.16.3

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: explain extra release files in release.yml and README

node-pty zips and checksums.json are fetched on-demand by BinaryManager
when the user clicks "Download binaries" in plugin settings. Obsidian
itself only installs main.js, manifest.json, and styles.css.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: replace text-decoration sub-properties with shorthand (0.16.4)

Obsidian CSS scanner flags text-decoration-line and text-decoration-style
as partially supported browser features. Replace all four xterm-underline
variants (2-5) with plain text-decoration: underline to pass the check.
Style variants degrade to normal underline visually.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
LeanProductivity 2026-05-13 10:54:06 +03:00 committed by GitHub
parent 5382ad9322
commit 7db8ab0cc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{
"id": "lean-terminal",
"name": "Lean Terminal",
"version": "0.16.3",
"version": "0.16.4",
"minAppVersion": "1.7.2",
"description": "Embedded terminal panel powered by xterm.js and node-pty - no external windows.",
"author": "LeanProductivity",

View file

@ -1,6 +1,6 @@
{
"name": "lean-terminal",
"version": "0.16.3",
"version": "0.16.4",
"description": "Embedded terminal for Obsidian using xterm.js and node-pty",
"main": "main.js",
"scripts": {

View file

@ -134,10 +134,10 @@
}
.xterm-underline-1 { text-decoration: underline; }
.xterm-underline-2 { text-decoration-line: underline; text-decoration-style: double; }
.xterm-underline-3 { text-decoration-line: underline; text-decoration-style: wavy; }
.xterm-underline-4 { text-decoration-line: underline; text-decoration-style: dotted; }
.xterm-underline-5 { text-decoration-line: underline; text-decoration-style: dashed; }
.xterm-underline-2 { text-decoration: underline; }
.xterm-underline-3 { text-decoration: underline; }
.xterm-underline-4 { text-decoration: underline; }
.xterm-underline-5 { text-decoration: underline; }
.xterm-overline { text-decoration: overline; }
.xterm-strikethrough { text-decoration: line-through; }

View file

@ -30,5 +30,6 @@
"0.16.0": "1.5.0",
"0.16.1": "1.7.2",
"0.16.2": "1.7.2",
"0.16.3": "1.7.2"
"0.16.3": "1.7.2",
"0.16.4": "1.7.2"
}