fix: disable some default webview behaviors

This commit is contained in:
reya
2024-08-19 13:46:22 +07:00
parent bcc5e18082
commit 26ae473521
10 changed files with 132 additions and 13 deletions

View File

@@ -29,17 +29,13 @@ function Screen() {
const ref = useRef<HTMLDivElement>(null);
return (
<div className="h-full flex flex-col">
<div
data-tauri-drag-region
className="shrink-0 h-8 w-full border-b border-black/5 dark:border-white/5"
/>
<div data-tauri-drag-region className="h-full flex flex-col">
<ScrollArea.Root
type={"scroll"}
scrollHideDelay={300}
className="overflow-hidden size-full flex-1"
>
<ScrollArea.Viewport ref={ref} className="h-full p-3">
<ScrollArea.Viewport ref={ref} className="h-full pt-12 px-3 pb-3">
<RootEvent />
<Virtualizer scrollRef={ref}>
<ReplyList />