Skip to content

Commit 3804759

Browse files
committed
try solve chrome issue
1 parent 4c62517 commit 3804759

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/widgets/main/main.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
margin-top: calc(var(--nav-height) * -1);
1818
top: 0;
1919
position: sticky;
20-
@apply h-full max-h-screen overflow-y-scroll;
20+
scrollbar-gutter: stable;
21+
scrollbar-width: thin;
22+
23+
@apply h-full max-h-screen overflow-auto;
2124
}

src/widgets/navi/common.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const MenuDrawer = memo(() => {
2727
</div>
2828
<Contact />
2929
</DrawerTitle>
30-
<div className="h-full w-[70vw]">
30+
<div className="h-full w-[70vw] overflow-auto">
3131
<Toc />
3232
</div>
3333
</DrawerContent>

src/widgets/toc/Toc.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Toc = memo(() => {
1212
return <Collapse key={i_content} content={c} index={i_content} />
1313
})
1414

15-
return <div className="w-full p-2">{contents}</div>
15+
return <div className="w-full p-2 list-none">{contents}</div>
1616
})
1717
Toc.displayName = 'Toc'
1818

0 commit comments

Comments
 (0)