Skip to content

Commit

Permalink
205 mobile view (#218)
Browse files Browse the repository at this point in the history
Co-authored-by: Mathilde Haukø Haugum <[email protected]>
  • Loading branch information
jonasbjoralt and mathildehaugum authored Oct 26, 2023
1 parent 0806744 commit 92ec604
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/SearchBarComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function SearchBarComponent() {
<div className="flex flex-col gap-2">
<p className="body-small">Søk</p>
<div
className={`flex flex-row gap-2 rounded-lg border px-3 py-2 w-max hover:bg-primary_l4 hover:border-primary_default ${
className={`flex flex-row gap-2 rounded-lg border px-3 py-2 w-full hover:bg-primary_l4 hover:border-primary_default ${
searchIsActive ? "border-primary_default" : "border-primary_l1"
} `}
>
Expand Down
14 changes: 8 additions & 6 deletions frontend/src/components/StaffingSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ export default function StaffingSidebar() {
const [isSidebarHidden, setIsSidebarHidden] = useState(true);

return (
<div>
<div className="min-h-screen fixed">
<div
className={`bg-primary_l4 py-6 px-4 h-full min-h-screen w-[211px] ${
isSidebarHidden ? "absolute -left-[211px]" : "sticky top-[52px]"
className={`bg-primary_l4 py-6 px-4 h-full min-h-screen w-[300px] ${
isSidebarHidden
? "absolute -left-[328px]"
: "fixed sm:sticky top-[52px]"
}`}
>
<div className="flex flex-col gap-6 fixed w-[179px]">
<div className="flex flex-col gap-6 fixed w-[270px]">
<div className="flex flex-row justify-between">
<h3 className="">Filter</h3>
<button
Expand All @@ -32,8 +34,8 @@ export default function StaffingSidebar() {
</div>
<button
onClick={() => setIsSidebarHidden(false)}
className={`bg-primary_l3 rounded-r p-2 mt-6 hover:bg-primary_default hover:bg-opacity-20 ${
!isSidebarHidden ? "hidden" : "sticky top-[76px]"
className={`bg-primary_l3 rounded-r p-2 mt-16 hover:bg-primary_default hover:bg-opacity-20 ${
isSidebarHidden ? "top-[200px]" : "hidden"
}`}
>
<Filter className="text-primary_default" size="20" />
Expand Down

0 comments on commit 92ec604

Please sign in to comment.