Skip to content

Commit

Permalink
style: tag-switch overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Oct 2, 2024
1 parent 3b8ccc4 commit 745b88e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Switch({
setTag: (tag: string) => void;
}) {
return (
<div className="z-50 flex flex-col items-start">
<div className="z-50 flex flex-col overflow-x-scroll scrollbar-hidden rounded-[50px] items-start">
<div className="flex items-center gap-1 rounded-[50px] bg-stone-100 p-[3px] dark:bg-stone-800">
{allTag.map((tag) => (
<div
Expand Down
8 changes: 8 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,11 @@
opacity: 0.15;
}
}

.scrollbar-hidden {
scrollbar-width: none; /* Firefox */
}

.scrollbar-hidden::-webkit-scrollbar {
display: none; /* Chrome, Safari 和 Opera */
}

0 comments on commit 745b88e

Please sign in to comment.