Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
f7d1225c
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "4b88e7e44ff948c47266eb76b41d04e3313dea77"
Commit
f7d1225c
authored
Aug 05, 2024
by
Timothy J. Baek
Browse files
enh: codespan styling
parent
3dc90b85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
src/app.css
src/app.css
+14
-0
src/lib/components/chat/Messages/MarkdownInlineTokens.svelte
src/lib/components/chat/Messages/MarkdownInlineTokens.svelte
+1
-1
No files found.
src/app.css
View file @
f7d1225c
...
@@ -158,3 +158,17 @@ input[type='number'] {
...
@@ -158,3 +158,17 @@ input[type='number'] {
.password
{
.password
{
-webkit-text-security
:
disc
;
-webkit-text-security
:
disc
;
}
}
.codespan
{
color
:
#eb5757
;
border-width
:
0px
;
padding
:
3px
8px
;
font-size
:
0.8em
;
font-weight
:
600
;
}
[
data-theme
=
'light'
]
.codespan
{
background-color
:
#f0f0f0
;
}
[
data-theme
=
'dark'
]
.codespan
{
background-color
:
#111
;
}
src/lib/components/chat/Messages/MarkdownInlineTokens.svelte
View file @
f7d1225c
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<svelte:self id={`${id}-em`} tokens={token.tokens} />
<svelte:self id={`${id}-em`} tokens={token.tokens} />
</em>
</em>
{:else if token.type === 'codespan'}
{:else if token.type === 'codespan'}
<code>{unescapeHtml(token.text.replaceAll('&', '&'))}</code>
<code
class="codespan"
>{unescapeHtml(token.text.replaceAll('&', '&'))}</code>
{:else if token.type === 'br'}
{:else if token.type === 'br'}
<br />
<br />
{:else if token.type === 'del'}
{:else if token.type === 'del'}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment