From 2e6c0d884ae39e55d08d6cad48a07b0bfab017bf Mon Sep 17 00:00:00 2001 From: aparusel Date: Sun, 19 Apr 2026 13:43:03 +0200 Subject: [PATCH 1/3] fix(editor): improve rich markdown table readability Show borders and subtle striping for rich markdown tables so cell boundaries stay legible in the formatted editor. --- .../src/assets/rich-markdown-editor.css | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/renderer/src/assets/rich-markdown-editor.css b/src/renderer/src/assets/rich-markdown-editor.css index 105dcc9bd296..fc0741dfc55a 100644 --- a/src/renderer/src/assets/rich-markdown-editor.css +++ b/src/renderer/src/assets/rich-markdown-editor.css @@ -280,6 +280,33 @@ background: color-mix(in srgb, var(--foreground) 2%, transparent); } +.rich-markdown-editor table { + width: 100%; + margin: 1em 0; + border-collapse: collapse; + font-size: 0.95em; +} + +.rich-markdown-editor th, +.rich-markdown-editor td { + padding: 8px 14px; + border: 1px solid var(--border); + text-align: left; + vertical-align: top; +} + +.rich-markdown-editor th { + font-weight: 600; + font-size: 0.85em; + text-transform: uppercase; + letter-spacing: 0.03em; + background: color-mix(in srgb, var(--foreground) 4%, transparent); +} + +.rich-markdown-editor tr:nth-child(even) td { + background: color-mix(in srgb, var(--foreground) 1.5%, transparent); +} + .rich-markdown-editor code { padding: 0.2em 0.4em; border-radius: 5px; From cd1f2010613013156083fd25c7fe7f0a2653c9cf Mon Sep 17 00:00:00 2001 From: aparusel Date: Sun, 19 Apr 2026 14:00:05 +0200 Subject: [PATCH 2/3] fix(editor): keep rich table headers sentence case Keep the new table styling readable without forcing header text to uppercase. --- src/renderer/src/assets/rich-markdown-editor.css | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/renderer/src/assets/rich-markdown-editor.css b/src/renderer/src/assets/rich-markdown-editor.css index fc0741dfc55a..c1273b10bedd 100644 --- a/src/renderer/src/assets/rich-markdown-editor.css +++ b/src/renderer/src/assets/rich-markdown-editor.css @@ -298,8 +298,6 @@ .rich-markdown-editor th { font-weight: 600; font-size: 0.85em; - text-transform: uppercase; - letter-spacing: 0.03em; background: color-mix(in srgb, var(--foreground) 4%, transparent); } From 3969d34054fa9247d0ae2b1e4a33a2bf7886d22a Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Sun, 19 Apr 2026 09:21:46 -0700 Subject: [PATCH 3/3] style(rich-md): fix table striping against Tiptap tbody-only DOM Switch zebra striping to nth-child(odd) so the shaded row doesn't sit directly under the header, and drop the compounding th font-size. --- src/renderer/src/assets/rich-markdown-editor.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/assets/rich-markdown-editor.css b/src/renderer/src/assets/rich-markdown-editor.css index c1273b10bedd..4d494da6b3af 100644 --- a/src/renderer/src/assets/rich-markdown-editor.css +++ b/src/renderer/src/assets/rich-markdown-editor.css @@ -297,11 +297,14 @@ .rich-markdown-editor th { font-weight: 600; - font-size: 0.85em; background: color-mix(in srgb, var(--foreground) 4%, transparent); } -.rich-markdown-editor tr:nth-child(even) td { +/* Why: Tiptap tables render as only with the first containing + cells. Striping odd rows (1, 3, 5) skips the header row — which has + no — and starts alternation from the second data row, avoiding a + shaded band directly adjacent to the header. */ +.rich-markdown-editor tr:nth-child(odd) td { background: color-mix(in srgb, var(--foreground) 1.5%, transparent); }