Skip to content

Commit 585080d

Browse files
authored
fix: Div wrapper no pointer events on hidden (ggml-org#23390)
1 parent 57ebaf4 commit 585080d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tools/ui/src/lib/components/app/chat/ChatScreen/ChatScreenActionScrollDown.svelte

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,16 @@
4141
});
4242
</script>
4343

44-
<div class="pointer-events-auto relative z-50 mx-auto mb-4 flex max-w-[48rem] justify-center">
44+
<div
45+
class="pointer-events-{show
46+
? 'auto'
47+
: 'none'} relative z-50 mx-auto mb-4 flex max-w-[48rem] justify-center"
48+
>
4549
<Button
4650
onclick={scrollToBottom}
4751
variant="secondary"
4852
size="icon"
49-
class="absolute h-10 w-10 rounded-full bg-background/80 shadow-lg backdrop-blur-sm transition-all duration-200 hover:bg-muted/80"
53+
class="pointer-events-all absolute h-10 w-10 rounded-full bg-background/80 shadow-lg backdrop-blur-sm transition-all duration-200 hover:bg-muted/80"
5054
style="bottom: {buttonBottom}; transform: translateY({show ? '0' : '2rem'}); opacity: {show
5155
? 1
5256
: 0};"

0 commit comments

Comments
 (0)