refac: background image styling behaviour
This commit is contained in:
1 parent
4d41013804
commit
bc2192e8bf
3 files changed
+13
-10
No files matched your search
@@ -43,6 +43,7 @@
|
||||
|
||||
export let initNewChat: Function;
|
||||
export let shareEnabled: boolean = false;
|
||||
export let scrollTop = 0;
|
||||
|
||||
export let chat;
|
||||
export let history;
|
||||
@@ -70,11 +71,17 @@
|
||||
aria-label="New Chat"
|
||||
/>
|
||||
|
||||
<nav class="sticky top-0 z-30 w-full py-1 -mb-8 flex flex-col items-center drag-region">
|
||||
<nav
|
||||
class="sticky top-0 z-30 w-full {chat?.id
|
||||
? 'pt-0.5 pb-1'
|
||||
: 'pt-1 pb-1'} -mb-12 flex flex-col items-center drag-region"
|
||||
>
|
||||
<div class="flex items-center w-full pl-1.5 pr-1">
|
||||
<div
|
||||
id="navbar-bg-gradient-to-b"
|
||||
class=" bg-linear-to-b via-40% to-97% from-white via-white to-transparent dark:from-gray-900 dark:via-gray-900 dark:to-transparent pointer-events-none absolute inset-0 -bottom-7 z-[-1]"
|
||||
class="{chat?.id
|
||||
? 'visible'
|
||||
: 'invisible'} bg-linear-to-b via-40% to-97% from-white/90 via-white/50 to-transparent dark:from-gray-900/90 dark:via-gray-900/50 dark:to-transparent pointer-events-none absolute inset-0 -bottom-10 z-[-1]"
|
||||
></div>
|
||||
|
||||
<div class=" flex max-w-full w-full mx-auto px-1.5 md:px-2 pt-0.5 bg-transparent">
|
||||
|
||||
Reference in new issue
Block a user