Skip to content

Commit c0b74c5

Browse files
webui: fix unreadable colors on links and table cell hover in user markdown
1 parent e84352f commit c0b74c5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tools/server/webui/src/lib/components/app/misc/MarkdownContent.svelte

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,21 @@
642642
background: var(--muted);
643643
}
644644
645+
/* Disable hover effects when rendering user messages */
646+
.markdown-user-content :global(a),
647+
.markdown-user-content :global(a:hover) {
648+
color: var(--primary-foreground);
649+
}
650+
651+
.markdown-user-content :global(table:hover) {
652+
box-shadow: none;
653+
}
654+
655+
.markdown-user-content :global(th:hover),
656+
.markdown-user-content :global(td:hover) {
657+
background: inherit;
658+
}
659+
645660
/* Enhanced blockquotes */
646661
div :global(blockquote) {
647662
transition: all 0.2s ease;

0 commit comments

Comments
 (0)