Skip to content

Commit bd49264

Browse files
committed
fix(frontend/filter-sidebar): various improvements
- make the chevron smaller - don't do a top border on the first group - add a bottom border && shadow to the header
1 parent 8072a75 commit bd49264

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

frontend/app/components/filter-sidebar.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#in-element this.destination}}
22
<aside
3-
class="filter-sidebar min-w-72 max-w-96
3+
class="filter-sidebar min-w-96 max-w-[30rem]
44
{{if
55
this.visible
66
'filter-sidebar--visible translate-x-0'
@@ -10,7 +10,7 @@
1010
...attributes
1111
>
1212
<div
13-
class="filter-sidebar-title flex justify-between px-2.5 py-3 text-lg font-semibold"
13+
class="filter-sidebar-title flex justify-between border-b px-2.5 py-3 text-lg font-semibold shadow-sm"
1414
>
1515
{{#if @appliedCount}}
1616
{{@appliedCount}}

frontend/app/components/filter-sidebar/group.hbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div
22
class="filter-sidebar-group
33
{{if this.expanded 'expanded filter-sidebar-group--expanded'}}
4-
group flex flex-col border-t p-2.5"
4+
group flex flex-col p-2.5 [&:not(:first-child)]:border-t"
55
>
66
<button
77
type="button"
@@ -10,15 +10,19 @@
1010
>
1111
{{@label}}
1212
<FaIcon
13+
class="-mr-[0.2rem]"
1314
@icon="angle-right"
1415
@prefix="fas"
1516
@transform="{{if this.expanded 'rotate-90'}}"
17+
@size="sm"
1618
/>
1719
</button>
1820
<div
1921
class="filter-sidebar-group-body max-h-0 overflow-hidden transition-[max-height] group-[.expanded]:max-h-[32rem]"
2022
>
21-
<div class="filter-sidebar-group-content py-2 [&>*]:mt-1">
23+
<div
24+
class="filter-sidebar-group-content py-2 text-sm [&>*]:mt-1 [&_label]:text-base"
25+
>
2226
{{yield}}
2327
</div>
2428
</div>

0 commit comments

Comments
 (0)