fix: styling

This commit is contained in:
Timothy J. Baek 2024-05-01 23:11:16 -07:00
parent 35b5d5ba35
commit b19e05669e
4 changed files with 13 additions and 7 deletions

View file

@ -22,7 +22,7 @@
</script> </script>
<Modal bind:show> <Modal bind:show>
<div class="px-5 py-4 dark:text-gray-300"> <div class="px-5 py-4 dark:text-gray-300 text-gray-700">
<div class="flex justify-between items-start"> <div class="flex justify-between items-start">
<div class="text-xl font-bold"> <div class="text-xl font-bold">
{$i18n.t('Whats New in')} {$i18n.t('Whats New in')}

View file

@ -35,7 +35,7 @@
</script> </script>
<Modal bind:show> <Modal bind:show>
<div> <div class="text-gray-700 dark:text-gray-100">
<div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-1"> <div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-1">
<div class=" text-lg font-medium self-center">{$i18n.t('Settings')}</div> <div class=" text-lg font-medium self-center">{$i18n.t('Settings')}</div>
<button <button

View file

@ -192,6 +192,8 @@
</div> </div>
<ShortcutsModal bind:show={showShortcuts} /> <ShortcutsModal bind:show={showShortcuts} />
<SettingsModal bind:show={$showSettings} />
<ChangelogModal bind:show={$showChangelog} />
<div class="app relative"> <div class="app relative">
<div <div
@ -292,8 +294,7 @@
{/if} {/if}
<Sidebar /> <Sidebar />
<SettingsModal bind:show={$showSettings} />
<ChangelogModal bind:show={$showChangelog} />
<slot /> <slot />
{/if} {/if}
</div> </div>

View file

@ -15,7 +15,8 @@
chatId, chatId,
config, config,
WEBUI_NAME, WEBUI_NAME,
tags as _tags tags as _tags,
showSidebar
} from '$lib/stores'; } from '$lib/stores';
import { copyToClipboard, splitStream, convertMessagesToHistory } from '$lib/utils'; import { copyToClipboard, splitStream, convertMessagesToHistory } from '$lib/utils';
@ -857,7 +858,11 @@
</svelte:head> </svelte:head>
{#if loaded} {#if loaded}
<div class="min-h-screen max-h-screen w-full flex flex-col"> <div
class="min-h-screen max-h-screen {$showSidebar
? 'max-w-[calc(100%-260px)]'
: 'max-w-full'} flex flex-col"
>
<Navbar <Navbar
{title} {title}
{chat} {chat}
@ -875,7 +880,7 @@
/> />
<div class="flex flex-col flex-auto"> <div class="flex flex-col flex-auto">
<div <div
class=" pb-2.5 flex flex-col justify-between w-full flex-auto overflow-auto h-0" class=" pb-2.5 flex flex-col justify-between w-full flex-auto overflow-auto h-0 max-w-full"
id="messages-container" id="messages-container"
bind:this={messagesContainerElement} bind:this={messagesContainerElement}
on:scroll={(e) => { on:scroll={(e) => {