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
5076700b
Commit
5076700b
authored
Feb 23, 2024
by
Timothy J. Baek
Browse files
feat: colour code sections
parent
d5005e39
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/lib/components/ChangelogModal.svelte
src/lib/components/ChangelogModal.svelte
+15
-3
No files found.
src/lib/components/ChangelogModal.svelte
View file @
5076700b
...
...
@@ -23,7 +23,7 @@
<div class="px-5 py-4 dark:text-gray-300">
<div class="flex justify-between items-start">
<div class="text-xl font-bold">
{WEBUI_NAME}
What’s New in
{WEBUI_NAME}
<!-- <Confetti x={[-1, -0.25]} y={[0, 0.5]} /> -->
</div>
<button
...
...
@@ -61,8 +61,20 @@
</div>
{#each Object.keys(changelog[version]).filter((section) => section !== 'date') as section}
<div class="text-lg">
<div class="font-bold capitalize">{section}</div>
<div class="">
<div
class="font-bold capitalize text-xs {section === 'added'
? 'text-white bg-blue-500'
: section === 'fixed'
? 'text-white bg-green-500'
: section === 'changed'
? 'text-white bg-yellow-500'
: section === 'removed'
? 'text-white bg-red-500'
: ''} w-fit px-3 rounded-full my-3"
>
{section}
</div>
<div class="my-2">
{#each Object.keys(changelog[version][section]) as item}
...
...
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