Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: secondary navbar overflow (#9891)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankittankal committed Dec 25, 2023
1 parent aeb4e4b commit 0dbdebf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { classNames } from "@services/utils/classNames";
export default function Tabs({ tabs, setTabs, selectedTab }) {
return (
<div>
<div className="sm:hidden">
<div className="tablet:hidden">
{tabs.length > 1 && (
<Select
name="tabs"
Expand All @@ -17,7 +17,7 @@ export default function Tabs({ tabs, setTabs, selectedTab }) {
/>
)}
</div>
<div className="hidden sm:block mb-4">
<div className="hidden tablet:block mb-4">
<div className="border-b border-primary-medium-low">
<nav className="-mb-px flex" aria-label="Tabs">
{tabs.map((tab) => (
Expand Down
6 changes: 3 additions & 3 deletions components/navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default function Navbar() {
<LogoWide onClick={() => setIsOpen(false)} width={128} />
</Link>
</div>
<div className="hidden md:block">
<div className="hidden tablet:block">
<ul className="ml-10 flex items-baseline space-x-4">
{primary.map((item) => (
<li key={item.name}>
Expand All @@ -168,7 +168,7 @@ export default function Navbar() {
</ul>
</div>
</div>
<div className="hidden md:block">
<div className="hidden tablet:block">
<div className="flex items-center gap-3">
{renderThemeChanger()}
<Link
Expand All @@ -187,7 +187,7 @@ export default function Navbar() {
{authControls()}
</div>
</div>
<div className="-mr-2 flex md:hidden">
<div className="-mr-2 flex tablet:hidden">
<button
onClick={() => setIsOpen(isOpen ? false : true)}
type="button"
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ module.exports = {
high: "#770d14",
},
},
screens: {
'tablet': '900px',
},
},
},
corePlugins: {
Expand Down

0 comments on commit 0dbdebf

Please sign in to comment.