mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-06 08:01:35 +00:00
fix: raise the chat scroll fade so a short block still shows one
This commit is contained in:
@@ -160,7 +160,10 @@
|
||||
having scrolled down is itself the knowledge that there is more up there. -->
|
||||
{#if fades.bottom}
|
||||
<div
|
||||
class={twMerge('pointer-events-none absolute inset-x-0 bottom-0 h-[min(2rem,25%)]', fadeTo)}
|
||||
class={twMerge(
|
||||
'pointer-events-none absolute inset-x-0 bottom-0 h-[min(2.5rem,35%)]',
|
||||
fadeTo
|
||||
)}
|
||||
></div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -438,11 +438,11 @@
|
||||
on the wrong colour and leave a band at the very edge. -->
|
||||
{#if fades.bottom && fadeBody}
|
||||
<div
|
||||
class="pointer-events-none absolute inset-x-0 bottom-0 h-[min(2rem,25%)] bg-gradient-to-t from-surface via-surface/60 to-transparent"
|
||||
class="pointer-events-none absolute inset-x-0 bottom-0 h-[min(2.5rem,35%)] bg-gradient-to-t from-surface via-surface/60 to-transparent"
|
||||
></div>
|
||||
{#if activeTab === 'logs'}
|
||||
<div
|
||||
class="pointer-events-none absolute inset-x-0 bottom-0 h-[min(2rem,25%)] bg-gradient-to-t from-surface-secondary/50 via-surface-secondary/30 to-transparent"
|
||||
class="pointer-events-none absolute inset-x-0 bottom-0 h-[min(2.5rem,35%)] bg-gradient-to-t from-surface-secondary/50 via-surface-secondary/30 to-transparent"
|
||||
></div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
</div>
|
||||
{#if showFade && fades.bottom}
|
||||
<div
|
||||
class="absolute bottom-0 left-0 right-0 h-[min(2rem,25%)] pointer-events-none bg-gradient-to-t from-surface via-surface/70 via-surface/40 to-transparent"
|
||||
class="absolute bottom-0 left-0 right-0 h-[min(2.5rem,35%)] pointer-events-none bg-gradient-to-t from-surface via-surface/70 to-transparent"
|
||||
></div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user