fix: group switch overflow on mobile

This commit is contained in:
hamster1963 2024-11-30 00:46:27 +08:00
parent 2f26d8b0de
commit 9c1d37c64f

View File

@ -11,7 +11,9 @@ export default function GroupSwitch({
setCurrentTab: (tab: string) => void;
}) {
return (
<div className="z-50 flex flex-col items-start rounded-[50px]">
<div
className="scrollbar-hidden z-50 flex flex-col items-start overflow-x-scroll rounded-[50px]"
>
<div className="flex items-center gap-1 rounded-[50px] bg-stone-100 p-[3px] dark:bg-stone-800">
{tabs.map((tab: string) => (
<div