From 255bc46c963c9271d4fdca03965ea3aa1add01b3 Mon Sep 17 00:00:00 2001 From: Quaylyn Rimer Date: Tue, 27 Jan 2026 12:34:38 -0700 Subject: [PATCH] fix: markdown table text displaying vertically Fixes issue where markdown table cell text was rendering character-by-character vertically instead of horizontally. The root cause was the parent .markdown container's word-break: break-word property affecting table cells. Solution: Override word-break and overflow-wrap to 'normal' for table cells (td and th) to prevent character-level breaking while maintaining proper text wrapping behavior. Fixes: 90c33657e807e809594049c18968254438f88f7b --- src/components/Markdown.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Markdown.svelte b/src/components/Markdown.svelte index 29536777f..85247bd3f 100644 --- a/src/components/Markdown.svelte +++ b/src/components/Markdown.svelte @@ -402,9 +402,10 @@ } .markdown :global(td) { text-align: left; - text-overflow: ellipsis; border: 1px solid var(--color-border-subtle); padding: 0.5rem 1rem; + word-break: normal; + overflow-wrap: normal; } .markdown :global(tr:nth-child(even)) { background-color: var(--color-surface-base); @@ -412,6 +413,8 @@ .markdown :global(th) { text-align: center; padding: 0.5rem 1rem; + word-break: normal; + overflow-wrap: normal; } .markdown :global(*:first-child:not(pre)) {