Skip to content

Commit

Permalink
fix: mac 下侧边栏卡片溢出滚动下会出现样式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Sep 7, 2022
1 parent 9296820 commit d452b56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/website/components/AuthorCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function (props: { option: AuthorCardProps }) {
}
});
return (
<div id="author-card" className="fixed ">
<div id="author-card" className="sticky ">
<div className="w-52 flex flex-col justify-center items-center bg-white pt-6 pb-4 card-shadow ml-2 dark:bg-dark dark:card-shadow-dark">
<div className="px-10 flex flex-col justify-center items-center">
<ImageBoxFuture
Expand Down
2 changes: 1 addition & 1 deletion packages/website/components/Toc/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function (props: {
}
}, [current]);
return (
<div className="fixed" id="toc-card">
<div className="sticky" id="toc-card">
<div
id="toc-container"
className="bg-white w-60 card-shadow dark:card-shadow-dark ml-2 dark:bg-dark overflow-y-auto pb-2"
Expand Down

0 comments on commit d452b56

Please sign in to comment.