mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 06:49:03 +00:00
refac: only show banners in landing
This commit is contained in:
parent
3a737af190
commit
d77657f0d0
@ -1007,7 +1007,7 @@
|
||||
{initNewChat}
|
||||
/>
|
||||
|
||||
{#if $banners.length > 0}
|
||||
{#if $banners.length > 0 && !$chatId}
|
||||
<div class="absolute top-16 w-full {$showSidebar ? 'md:max-w-[calc(100%-260px)]' : ''}">
|
||||
<div class=" flex flex-col gap-1 w-full">
|
||||
{#each $banners.filter( (b) => (b.dismissible ? !JSON.parse(localStorage.getItem('dismissedBannerIds') ?? '[]').includes(b.id) : true) ) as banner}
|
||||
|
Loading…
Reference in New Issue
Block a user