style: tag-switch overflow

This commit is contained in:
hamster1963 2024-10-02 20:15:31 +08:00
parent 3b8ccc4fb3
commit 745b88e849
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -189,3 +189,11 @@
opacity: 0.15;
}
}
.scrollbar-hidden {
scrollbar-width: none; /* Firefox */
}
.scrollbar-hidden::-webkit-scrollbar {
display: none; /* Chrome, Safari 和 Opera */
}