Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Made side panel fixed on the tooling page #1359

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pages/tools/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,12 @@ export default function ToolingPage({

<div className='grid grid-cols-1 lg:grid-cols-4 mx-4 md:mx-12 min-h-screen'>
<div
className={`absolute lg:static top-10 lg:top-auto left-0 lg:left-auto mt-24 w-screen lg:w-auto h-full lg:h-auto bg-white dark:bg-slate-800 lg:bg-transparent transition-transform lg:transform-none duration-300 lg:duration-0 ease-in-out overflow-y-auto ${isSidebarOpen ? '-translate-x-0' : '-translate-x-full'} z-5`}
style={{ height: 'calc(100% - 8rem)' }}
className={`fixed top-10 lg:top-auto left-0 lg:left-auto mt-24 w-screen lg:w-auto h-full lg:h-auto bg-white dark:bg-slate-800 lg:bg-transparent transition-transform lg:transform-none duration-300 lg:duration-0 ease-in-out overflow-y-auto ${isSidebarOpen ? '-translate-x-0' : '-translate-x-full'} z-5`}
style={{
height: 'calc(100% - 8rem)',
scrollbarWidth: 'none',
msOverflowStyle: 'none',
}}
thepiyush-303 marked this conversation as resolved.
Show resolved Hide resolved
>
<div className='hidden lg:block'>
<h1 className='text-h1mobile md:text-h1 font-bold lg:ml-4 lg:mt-6'>
Expand All @@ -164,6 +168,7 @@ export default function ToolingPage({

<main
className={`md:col-span-3 lg:mt-20 lg:w-full mx-4 md:mx-0 ${isSidebarOpen ? 'hidden lg:block' : ''}`}
style={{ marginLeft: '19rem' }}
thepiyush-303 marked this conversation as resolved.
Show resolved Hide resolved
>
<Headline1>JSON Schema Tooling</Headline1>
<p className='text-slate-600 block leading-7 pb-1 dark:text-slate-300'>
Expand Down
Loading