fixed subpage pills (#4204)

* fixed subpage pills

* nit
pull/4207/head
Peer Richelsen 2022-09-06 11:06:39 +02:00 committed by GitHub
parent bbf22a29b0
commit 143279699a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -255,7 +255,7 @@ function EventTypeSingleLayout({
<div className="hidden xl:block">
<VerticalTabs tabs={EventTypeTabs} sticky />
</div>
<div className="relative left-0 right-0 -mx-6 w-[calc(100%+40px)] p-2 md:mx-0 md:p-0 xl:hidden">
<div className="p-2 md:mx-0 md:p-0 xl:hidden">
<HorizontalTabs tabs={EventTypeTabs} />
</div>
<div className="w-full ltr:mr-2 rtl:ml-2">

View File

@ -17,7 +17,7 @@ export default function AppStoreCategories({
return (
<div className="mb-16">
<Slider
className="mb-16"
className="mt-8 mb-16"
title={t("featured_categories")}
items={categories}
itemKey={(category) => category.name}

View File

@ -10,16 +10,16 @@ export interface NavTabProps {
const HorizontalTabs: FC<NavTabProps> = ({ tabs, ...props }) => {
return (
<>
<div className="-mx-6 mb-2 w-[calc(100%+40px)]">
<nav
className="no-scrollbar flex space-x-1 overflow-scroll px-6 md:overflow-visible md:px-0"
className="no-scrollbar flex space-x-1 overflow-scroll px-6 md:overflow-visible"
aria-label="Tabs"
{...props}>
{tabs.map((tab, idx) => (
<HorizontalTabItem {...tab} key={idx} />
))}
</nav>
</>
</div>
);
};