mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01: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:
parent
272eae5d66
commit
6e660d11c9
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue