fix: stat card scroll

This commit is contained in:
puriphatt 2024-07-04 04:14:41 +00:00
parent 39fc15167c
commit 93af8ce47b
5 changed files with 65 additions and 58 deletions

View file

@ -547,20 +547,22 @@ watch(inputSearch, async () => await fetchUserList());
{{ selectorLabel === '' ? '' : $t(selectorLabel) }}
</div>
<div class="q-px-md scroll">
<StatCardComponent
v-if="sortedUserStats"
:branch="
sortedUserStats.map((v) => ({
count: v.count,
label: $i18n.locale === 'en-US' ? v.nameEN : v.name,
color: v.isHeadOffice ? 'pink' : 'purple',
}))
"
:dark="$q.dark.isActive"
nowrap
class="q-mb-md"
/>
<div class="scroll">
<div class="q-mx-md" style="display: inline-block">
<StatCardComponent
v-if="sortedUserStats"
:branch="
sortedUserStats.map((v) => ({
count: v.count,
label: $i18n.locale === 'en-US' ? v.nameEN : v.name,
color: v.isHeadOffice ? 'pink' : 'purple',
}))
"
:dark="$q.dark.isActive"
nowrap
class="q-mb-md"
/>
</div>
</div>
</div>
</div>