feat: float alignment

This commit is contained in:
alisa 2023-04-25 18:27:46 +08:00
parent beef1e1c26
commit 6bbe2b2c61
2 changed files with 4 additions and 8 deletions

View File

@ -16,8 +16,8 @@ const isPositive = controlledComputed(() => props.change, () => Math.sign(props.
</script>
<template>
<VCard>
<VCardText class="d-flex align-center justify-center">
<VCard class="h-full flex-col content-between">
<VCardText class="d-flex align-center justify-between">
<VAvatar
v-if="props.icon"
rounded
@ -31,8 +31,6 @@ const isPositive = controlledComputed(() => props.change, () => Math.sign(props.
/>
</VAvatar>
<VSpacer />
<div
v-if="props.change"
:class="isPositive ? 'text-success' : 'text-error'"
@ -44,7 +42,7 @@ const isPositive = controlledComputed(() => props.change, () => Math.sign(props.
</div>
</VCardText>
<VCardText>
<VCardText class="d-flex flex-col">
<h6 class="text-h6 me-2 mt-2 mb-1">
{{ props.stats }}
</h6>

View File

@ -132,9 +132,7 @@ function shortName(name: string, id: string) {
<VRow>
<VCol v-for="item in store.stats" cols="12" sm="6" md="2">
<VCard>
<CardStatisticsVertical v-bind="item" />
</VCard>
<CardStatisticsVertical v-bind="item" />
</VCol>
</VRow>