Skip to content

Commit

Permalink
chore: improve styles
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Nov 22, 2023
1 parent ea1cbc6 commit 7c915bd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/pages/about/statistic/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

<script lang="ts" setup>
import { useEnhancer } from '/@/app/enhancer'
import { LanguageKey } from '/@/language'
interface Props {
brand?: string
Expand All @@ -38,12 +37,15 @@

<template>
<div class="statistic" :class="[brand, { dark: isDarkTheme }]">
<placeholder :i18n-key="LanguageKey.EMPTY_PLACEHOLDER" :loading="fetching" :data="data">
<placeholder :loading="fetching" :data="data">
<template #loading>
<ul class="skeletons">
<skeleton-base v-for="i in 3" :key="i" class="item" />
</ul>
</template>
<template #placeholder>
<empty class="empty" />
</template>
<template #default>
<div class="content">
<ulink class="title" :href="href">
Expand Down Expand Up @@ -92,6 +94,11 @@
#{--brand-color}: $text-reversal;
}
.empty {
font-weight: bold;
font-size: $font-size-h4;
}
.skeletons {
margin: 0;
padding: 1rem 0;
Expand Down

0 comments on commit 7c915bd

Please sign in to comment.