Skip to content

Commit bd6b4a4

Browse files
committed
mobile formatting
1 parent 3743c9b commit bd6b4a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/Navigation.res

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ let make = (~fixed=true, ~isOverlayOpen: bool, ~setOverlayOpen: (bool => bool) =
169169
{isDocRoute(~route)
170170
? <nav
171171
id="docs-subnav"
172-
className="z-50 px-4 w-full h-12 shadow text-gray-60 text-14 transition duration-300 ease-out group-[.nav-disappear]:-translate-y-16 md:group-[.nav-disappear]:transform-none">
173-
<div className="pl-30 flex gap-10 items-center h-full w-full max-w-md">
172+
className="bg-white z-50 px-4 w-full h-12 shadow text-gray-60 text-12 md:text-14 transition duration-300 ease-out group-[.nav-disappear]:-translate-y-16 md:group-[.nav-disappear]:transform-none">
173+
<div
174+
className="pl-30 flex gap-2 md:gap-6 lg:gap-10 items-center h-full w-full max-w-md">
174175
<Link
175176
href={`/docs/manual/${version}/introduction`}
176177
className={isActiveLink(~includes="/docs/manual/", ~excludes="/api", ~route)}>

src/layouts/SidebarLayout.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ let make = (
312312
<main className="px-4 w-full pt-20 md:ml-12 lg:mr-8 mb-32 md:max-w-576 lg:max-w-740">
313313
//width of the right content part
314314
<div
315-
className={"z-10 fixed border-b shadow top-16 left-0 pl-4 bg-white w-full py-4 md:relative md:border-none md:shadow-none md:p-0 md:top-auto flex items-center transition duration-300 ease-out group-[.nav-disappear]:-translate-y-32 md:group-[.nav-disappear]:transform-none"}>
315+
className={"z-10 fixed border-b shadow top-26 left-0 pl-4 bg-white w-full py-4 md:relative md:border-none md:shadow-none md:p-0 md:top-auto flex items-center transition duration-300 ease-out group-[.nav-disappear]:-translate-y-32 md:group-[.nav-disappear]:transform-none"}>
316316
<MobileDrawerButton hidden=isNavOpen onClick={handleDrawerButtonClick} />
317317
<div
318318
className="truncate overflow-x-auto touch-scroll flex items-center space-x-4 md:justify-between mr-4 w-full">

0 commit comments

Comments
 (0)