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

Update sidebar #201

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion frontend/src/components/DepartmentFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function DepartmentFilter() {
return (
<div>
<div className="flex flex-col gap-2">
<p className="body-small">Avdelinger</p>
<p className="body-small">Avdeling</p>
<div className="flex flex-col gap-2 w-52">
{departments?.map((department, index) => (
<FilterButton
Expand Down
26 changes: 14 additions & 12 deletions frontend/src/components/StaffingSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,24 @@ export default function StaffingSidebar() {
return (
<div>
<div
className={`bg-primary_l4 py-6 px-4 flex flex-col gap-6 h-full min-h-screen w-[211px] ${
className={`bg-primary_l4 py-6 px-4 h-full min-h-screen w-[211px] ${
isSidebarHidden ? "absolute -left-[211px]" : "sticky top-[52px]"
}`}
>
<div className="flex flex-row justify-between">
<h3 className="">Filter</h3>
<button
onClick={() => setIsSidebarHidden(true)}
className="rounded p-2 hover:bg-primary_default hover:bg-opacity-20 h-9 w-9"
>
<ArrowLeft className="text-primary_default" size="20" />
</button>
<div className="flex flex-col gap-6 fixed w-[179px]">
<div className="flex flex-row justify-between">
<h3 className="">Filter</h3>
<button
onClick={() => setIsSidebarHidden(true)}
className="rounded p-2 hover:bg-primary_default hover:bg-opacity-20 h-9 w-9"
>
<ArrowLeft className="text-primary_default" size="20" />
</button>
</div>
<SearchBarComponent />
<DepartmentFilter />
<ExperienceFilter />
</div>
<SearchBarComponent />
<DepartmentFilter />
<ExperienceFilter />
</div>
<button
onClick={() => setIsSidebarHidden(false)}
Expand Down