Skip to content

Commit f90332d

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

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

0 commit comments

Comments
 (0)