hotfixy filtrów

This commit is contained in:
2023-03-15 18:15:01 +01:00
parent e4c5f6a322
commit ff78eba927
2 changed files with 19 additions and 14 deletions
+15 -12
View File
@@ -43,15 +43,14 @@
<h1 class="option-title">{{ $t('options.sort-title') }}</h1>
<div class="options_sorters">
<div v-for="opt in translatedSorterOptions">
<button
class="sort-option btn--option"
:data-selected="opt.id == sorterActive.id"
@click="onSorterChange(opt)"
>
{{ opt.value.toUpperCase() }}
</button>
</div>
<button
v-for="opt in translatedSorterOptions"
class="sort-option btn--option"
:data-selected="opt.id == sorterActive.id"
@click="onSorterChange(opt)"
>
{{ opt.value.toUpperCase() }}
</button>
</div>
<h1 class="option-title" v-if="trainFilterList.length != 0">{{ $t('options.filter-title') }}</h1>
@@ -191,19 +190,23 @@ export default defineComponent({
margin: 0 auto;
}
.options_filters div {
.options_sorters {
display: flex;
grid-template-columns: repeat(3, 1fr);
}
.options_filters > div {
display: flex;
width: 100%;
gap: 0.5em;
margin-bottom: 0.5em;
button {
width: 100%;
color: springgreen;
font-weight: bold;
&[data-inactive=true] {
&[data-inactive='true'] {
color: #aaa;
}
}