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
9a92ae78
Commit
9a92ae78
authored
May 18, 2024
by
Timothy J. Baek
Browse files
fix: hide show username interface option
parent
8dac4e91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
src/lib/components/chat/Settings/Interface.svelte
src/lib/components/chat/Settings/Interface.svelte
+21
-19
src/lib/components/common/Modal.svelte
src/lib/components/common/Modal.svelte
+1
-1
No files found.
src/lib/components/chat/Settings/Interface.svelte
View file @
9a92ae78
...
@@ -217,27 +217,29 @@
...
@@ -217,27 +217,29 @@
</div>
</div>
</div>
</div>
<div>
{#if !$settings.chatBubble}
<div class=" py-0.5 flex w-full justify-between">
<div>
<div class=" self-center text-xs font-medium">
<div class=" py-0.5 flex w-full justify-between">
{$i18n.t('Display the username instead of You in the Chat')}
<div class=" self-center text-xs font-medium">
</div>
{$i18n.t('Display the username instead of You in the Chat')}
</div>
<button
<button
class="p-1 px-3 text-xs flex rounded transition"
class="p-1 px-3 text-xs flex rounded transition"
on:click={() => {
on:click={() => {
toggleShowUsername();
toggleShowUsername();
}}
}}
type="button"
type="button"
>
>
{#if showUsername === true}
{#if showUsername === true}
<span class="ml-2 self-center">{$i18n.t('On')}</span>
<span class="ml-2 self-center">{$i18n.t('On')}</span>
{:else}
{:else}
<span class="ml-2 self-center">{$i18n.t('Off')}</span>
<span class="ml-2 self-center">{$i18n.t('Off')}</span>
{/if}
{/if}
</button>
</button>
</div>
</div>
</div>
</div>
{/if}
<div>
<div>
<div class=" py-0.5 flex w-full justify-between">
<div class=" py-0.5 flex w-full justify-between">
...
...
src/lib/components/common/Modal.svelte
View file @
9a92ae78
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
} else if (size === 'md') {
} else if (size === 'md') {
return 'w-[48rem]';
return 'w-[48rem]';
} else {
} else {
return 'w-[5
0
rem]';
return 'w-[5
2
rem]';
}
}
};
};
...
...
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