feat: Timestamps + LaTeX/KaTeX-Rendering im Chat
Timestamps (dd.MM.yyyy HH:mm:ss): - Neuer _formatTimestamp() + _addTimestamp() Helper in ui.js - Timestamp bei allen User- und Assistant-Nachrichten (live, history, archiv) - Erscheint on hover, halbtransparent, rechts oben an der Bubble LaTeX/Math-Rendering mit KaTeX 0.16.21: - KaTeX lokal eingebunden (JS + CSS + 21 woff2-Fonts) - renderMarkdown() schützt LaTeX vor Markdown-Parsing - $$...$$ → Block-Math (zentriert), $...$ → Inline-Math - Fehlerhafte Ausdrücke als <code> Fallback - KaTeX-Display Styling in markdown.css Weitere Änderungen: - theme.css: Neue --info Farbe - Blockquote-Styling: info-Farbe statt halbtransparent
This commit is contained in:
1 parent
dbeba6535a
commit
489b5e0eb0
29 files changed
+119
-11
No files matched your search
@@ -84,10 +84,10 @@
|
||||
}
|
||||
|
||||
.markdown blockquote {
|
||||
border-left: 3px solid var(--f3-border);
|
||||
border-left: 3px solid var(--info);
|
||||
margin: 0 0 .5em 0;
|
||||
padding: .5em;
|
||||
opacity: var(--semi-transparent);
|
||||
color: var(--info);
|
||||
}
|
||||
|
||||
.markdown blockquote:last-child {
|
||||
@@ -134,6 +134,33 @@
|
||||
margin-right: .5em;
|
||||
}
|
||||
|
||||
/* KaTeX Math */
|
||||
|
||||
.markdown .katex-display {
|
||||
margin: .75em .25em;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
padding: .25em 0;
|
||||
text-align: left;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.markdown .katex-display:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.markdown .katex-display:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.markdown .katex {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.markdown .katex-error {
|
||||
color: var(--dangerous);
|
||||
}
|
||||
|
||||
/* Fluent Emoji */
|
||||
|
||||
img.fluent-emoji {
|
||||
|
||||
Reference in new issue
Block a user