Skip to content

Commit

Permalink
styles: responsive header and sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
pnxl committed Aug 13, 2023
1 parent 098c72f commit f5632e8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/routes/dashboard/[workspace_id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ const Page: Component = () => {
<FullscreenLoader message="Please wait, our cats are finding your files!" />
}
>
<div class="backdrop-blur-xl w-screen h-screen relative flex overflow-hidden">
<div class="text-text bg-surface0/80 min-w-64 w-1/5 shrink-0">
<div class="md:backdrop-blur-xl w-screen h-screen relative flex overflow-hidden">
<div class="text-text bg-surface0/80 min-w-64 w-1/5 shrink-0 md:block hidden">
<header class="px-4 pt-6 pb-2 shrink-0 sticky top-0 w-full h-14 flex flex-row flex flex-row gap-[10px] items-center w-full">
<img src={cattoDriveLogo} class="w-10 h-10 -ml-1 mt-1" />
<span class="text-lg">
Expand Down Expand Up @@ -172,18 +172,18 @@ const Page: Component = () => {
</div>
</div>

<div class="flex flex-col h-full bg-base border-l border-surface2 w-4/5 z-20">
<header class="shrink-0 sticky top-0 bg-surface0 border-b border-surface1 w-full h-16 flex flex-row justify-between shadow-sm">
<h1 class="border-base font-semibold h-full justify-center flex flex-col ml-4 text-text">
<div class="flex flex-col h-full bg-base border-l border-surface2 w-full md:w-4/5 z-20">
<header class="shrink-0 sticky top-0 bg-surface0 border-b border-surface1 w-full h-16 md:pl-0 pl-2 flex flex-row justify-between shadow-sm">
<h1 class="md:flex hidden border-base font-semibold h-full justify-center flex-col ml-4 text-text">
My Workspace
</h1>
<div class="flex flex-row gap-x-2 mr-4 items-center">
<div class="flex flex-row gap-x-2 mr-4 w-full md:w-fit items-center">
<DropdownMenu.Root>
<DropdownMenu.Trigger>
<button
type="button"
title="Perform tasks with the selected items"
class="mr-2 hover:text-text text-subtext1 transition hover:bg-surface2 p-1.5 h-fit rounded-lg"
class="mr-2 md:block hidden hover:text-text text-subtext1 transition hover:bg-surface2 p-1.5 h-fit rounded-lg"
>
<IconDotsHorizontalCircleOutline class="text-xl" />
</button>
Expand Down Expand Up @@ -271,7 +271,7 @@ const Page: Component = () => {
placeholder="Search..."
name="search"
autofocus
class="py-1 px-4 rounded-xl w-84 bg-surface1 transition border-2 border-overlay0 hover:bg-overlay0 text-text placeholder-text-subtext1"
class="py-1 px-4 rounded-xl w-full md:w-84 bg-surface1 transition border-2 border-overlay0 hover:bg-overlay0 text-text placeholder-text-subtext1"
/>
<DropdownMenu.Root>
<DropdownMenu.Trigger>
Expand Down

0 comments on commit f5632e8

Please sign in to comment.