Skip to content

Commit

Permalink
Redesign sort arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanne committed May 15, 2024
1 parent 33fefeb commit cd5b61d
Showing 1 changed file with 34 additions and 28 deletions.
62 changes: 34 additions & 28 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,23 @@
>
<span class="flex items-center">
Eigenschaft
<div
class="arrow-up ml-8"
:class="{
active:
sortKey == 'characteristic' && sortDirection == 'asc',
}"
></div>
<div
class="arrow-down"
:class="{
active:
sortKey == 'characteristic' && sortDirection == 'desc',
}"
></div>
<span class="flex flex-col items-center ml-8">
<div
class="arrow-up mb-2"
:class="{
active:
sortKey == 'characteristic' && sortDirection == 'asc',
}"
></div>
<div
class="arrow-down"
:class="{
active:
sortKey == 'characteristic' &&
sortDirection == 'desc',
}"
></div>
</span>
</span>
</th>
<th
Expand All @@ -113,21 +116,24 @@
@click="setSortKey('percentage')"
@keyup.enter="setSortKey('percentage')"
>
<span class="flex items-center">
<span class="flex items-center justify-end">
Anzahl
<div
class="arrow-up ml-8"
:class="{
active: sortKey == 'percentage' && sortDirection == 'asc',
}"
></div>
<div
class="arrow-down"
:class="{
active:
sortKey == 'percentage' && sortDirection == 'desc',
}"
></div>
<span class="flex flex-col items-center ml-8">
<div
class="arrow-up mb-2"
:class="{
active:
sortKey == 'percentage' && sortDirection == 'asc',
}"
></div>
<div
class="arrow-down"
:class="{
active:
sortKey == 'percentage' && sortDirection == 'desc',
}"
></div>
</span>
</span>
</th>
<th class="w-3/12 sm:w-1/6">Quelle</th>
Expand Down

0 comments on commit cd5b61d

Please sign in to comment.