Fix color, sort order

This commit is contained in:
2024-01-21 10:17:20 +01:00
parent bfa24de384
commit 503349d9d5
2 changed files with 7 additions and 9 deletions

View File

@@ -384,7 +384,7 @@ watch(ccodes, (codes) => {
<span class="font-extrabold font-mono">Results <b v-if="itemCode">for {{ itemCode }}</b> </span>
</div>
<div>
<EasyTable id="results" :rows-per-page=25 :headers="hproducts" :items="tproducts" :body-row-class-name="bodyRowClassNameFunction" alternating>
<EasyTable id="results" table-class-name="results" sortBy="countryName" :rows-per-page=25 :headers="hproducts" :items="tproducts" :body-row-class-name="bodyRowClassNameFunction" alternating>
<template #item-countryName="{ countryName, url }">
<a class="underline" target="_blank" :href="url">{{ countryName }}</a>
</template>
@@ -397,7 +397,7 @@ watch(ccodes, (codes) => {
<span class="font-extrabold font-mono">Countries in which compare</span>
</div>
<div>
<multiselect :close-on-select="false" :multiple="true" v-model="form.countries" :options="ccountry_list"
<multiselect placeholder="All" :close-on-select="false" :multiple="true" v-model="form.countries" :options="ccountry_list"
@select="selectCountry" @remove="selectCountry">
</multiselect>
</div>
@@ -405,7 +405,7 @@ watch(ccodes, (codes) => {
<span class="font-extrabold font-mono">Country in which search product</span>
</div>
<div>
<multiselect :close-on-select="true" :multiple="false" v-model="form.country" :options="ccodes"
<multiselect placeholder="All" :close-on-select="true" :multiple="false" v-model="form.country" :options="ccodes"
label="country" track-by="code">
</multiselect>
</div>
@@ -507,12 +507,9 @@ watch(ccodes, (codes) => {
width: 128px;
}
.result-country {
--easy-table-body-row-background-color: yellow !important;
}
.even-row .result-country {
--easy-table-body-row-background-color: yellow !important;
:root .result-country {
--easy-table-body-row-background-color: yellow;
--easy-table-body-even-row-background-color: yellow;
}
</style>

View File

@@ -18,6 +18,7 @@
.gradient {
background: linear-gradient(90deg, #d53369 0%, #daae51 100%);
}
</style>
@routes
@vite('resources/js/app.js')