mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Override block display styling of links by Katex in chat messages
This happens sometimes when LLM respons contains [\[1\]] kind of links as reference. Both markdown-it and katex apply styling. Katex's span uses display: block which makes the rendering of these references take up a whole line by themselves. Override block styling of spans within an `a' element to prevent such chat message styling issues
This commit is contained in:
@@ -18,6 +18,11 @@ div.chatMessageWrapper p:not(:last-child) {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/* Override some link styling by Katex to improve rendering */
|
||||
div.chatMessageWrapper a span {
|
||||
display: revert !important;
|
||||
}
|
||||
|
||||
div.khojfullHistory {
|
||||
border-width: 1px;
|
||||
padding-left: 4px;
|
||||
|
||||
Reference in New Issue
Block a user