mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-30 00:45:12 -05:00
fix: banners missing on the new chat page in tabbed view (#33789)
When the terminal tabs split the screen, the chat on the left hid its whole top bar on the new chat page, and the admin banners and license notices went with it. The banners are now shown there again, while the rest of the top bar stays hidden as before.
This commit is contained in:
1 parent
2fb2e9ea27
commit
2171f4f11e
1 file changed
+6
-7
@@ -313,12 +313,11 @@
|
||||
/>
|
||||
|
||||
<nav
|
||||
class:hidden={tabbed}
|
||||
class="sticky top-0 z-30 w-full {$mobile
|
||||
? 'pt-1.5'
|
||||
: ''} pb-1 -mb-12 flex flex-col items-center drag-region"
|
||||
class="sticky top-0 z-30 w-full {$mobile ? 'pt-1.5' : ''} pb-1 {tabbed
|
||||
? ''
|
||||
: '-mb-12'} flex flex-col items-center drag-region"
|
||||
>
|
||||
<div class="flex items-center w-full {$mobile ? 'px-1.5' : 'pl-1.5 pr-1'}">
|
||||
<div class:hidden={tabbed} class="flex items-center w-full {$mobile ? 'px-1.5' : 'pl-1.5 pr-1'}">
|
||||
<div
|
||||
id="navbar-bg-gradient-to-b"
|
||||
class="{chat?.id
|
||||
@@ -411,13 +410,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#if $temporaryChatEnabled && isTemporaryChatId($chatId)}
|
||||
{#if !tabbed && $temporaryChatEnabled && isTemporaryChatId($chatId)}
|
||||
<div class=" w-full z-30 text-center">
|
||||
<div class="text-xs text-gray-500">{$i18n.t('Temporary Chat')}</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="absolute top-[100%] left-0 right-0 h-fit">
|
||||
<div class="absolute {tabbed ? 'top-8' : 'top-[100%]'} left-0 right-0 h-fit">
|
||||
{#if !history.currentId && !$chatId && ($banners.length > 0 || ($config?.license_metadata?.type ?? null) === 'trial' || (($config?.license_metadata?.seats ?? null) !== null && $config?.user_count > $config?.license_metadata?.seats))}
|
||||
<div class=" w-full z-30">
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user