Skip to content

Commit 7c6d054

Browse files
webui: fix unreadable colors on links and table cell hover in user markdown
1 parent c35555e commit 7c6d054

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
@@ -639,6 +639,21 @@
639639
background: var(--muted);
640640
}
641641
642+
/* Disable hover effects when rendering user messages */
643+
.markdown-user-content :global(a),
644+
.markdown-user-content :global(a:hover) {
645+
color: var(--primary-foreground);
646+
}
647+
648+
.markdown-user-content :global(table:hover) {
649+
box-shadow: none;
650+
}
651+
652+
.markdown-user-content :global(th:hover),
653+
.markdown-user-content :global(td:hover) {
654+
background: inherit;
655+
}
656+
642657
/* Enhanced blockquotes */
643658
div :global(blockquote) {
644659
transition: all 0.2s ease;

0 commit comments

Comments
 (0)