mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 10:51:20 +00:00
Fix tabmenu style on mboile
This commit is contained in:
parent
12c2711622
commit
b998a79f95
@ -76,9 +76,9 @@ const MenuTab = ({ selectedTopic, onTabChange, allTopics }) => {
|
||||
activeIndex={allItems.indexOf(selectedTopic)}
|
||||
onTabChange={(e) => onTabChange(allItems[e.index])}
|
||||
pt={{
|
||||
menu: { className: 'bg-transparent border-none my-2 mb-4' },
|
||||
menu: { className: 'bg-transparent border-none my-2 py-1' },
|
||||
action: ({ context, parent }) => ({
|
||||
className: 'cursor-pointer select-none flex items-center relative no-underline overflow-hidden border-b-2 p-2 font-bold rounded-t-lg',
|
||||
className: 'cursor-pointer select-none flex items-center relative no-underline overflow-hidden border-b-2 p-2 pl-1 font-bold rounded-t-lg',
|
||||
style: { top: '2px' }
|
||||
}),
|
||||
menuitem: { className: 'mr-0' }
|
||||
@ -172,12 +172,12 @@ export default function Home() {
|
||||
</Head>
|
||||
<main>
|
||||
<HeroBanner />
|
||||
<div className="w-full px-12">
|
||||
<div className="w-full px-4 md:px-12">
|
||||
<MenuTab
|
||||
selectedTopic={selectedTopic}
|
||||
onTabChange={handleTopicChange}
|
||||
allTopics={allTopics}
|
||||
className="max-w-[90%] mx-auto"
|
||||
className="w-full"
|
||||
/>
|
||||
</div>
|
||||
<div className="w-full px-4">
|
||||
|
Loading…
x
Reference in New Issue
Block a user