Skip to content

Commit

Permalink
feat: v4.44.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Sep 7, 2024
1 parent fe435b4 commit 6e5c3c1
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "surmon.me",
"version": "4.44.0",
"version": "4.44.1",
"description": "Surmon.me blog",
"author": "Surmon",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about/mobile/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
height: 3em;
display: flex;
align-items: center;
padding: 0 1em;
padding-left: 1em;
border-radius: $radius-sm;
background-color: $module-bg;
font-weight: bold;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/answers/mobile/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
.statistics,
.cards {
padding: 2rem;
padding: $gap-lg;
margin-bottom: $item-gap;
@include common-bg-module();
@include radius-box($radius-sm);
Expand Down
32 changes: 15 additions & 17 deletions src/pages/archive/desktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
</div>
<div class="statistics" v-else>
<div class="item" :key="index" v-for="(s, index) in statistics">
<p class="label">{{ s.label }}</p>
<i class="iconfont" :class="s.icon"></i>
<div class="content">
<i class="iconfont" :class="s.icon"></i>
<span class="value">{{ s.value }}</span>
<p class="label">{{ s.label }}</p>
<div class="value">{{ s.value }}</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -141,28 +141,26 @@
.statistics {
.item {
display: inline-flex;
flex-direction: column;
$value-size: $font-size-h1 * 1.1;
align-items: flex-end;
.label {
margin-bottom: 0;
text-transform: uppercase;
color: $color-text-secondary;
margin-left: $value-size;
padding-left: $gap-sm;
.iconfont {
margin-right: $gap;
display: inline-block;
font-size: $font-size-h3 * 2;
color: $color-text-disabled;
opacity: 0.2;
}
.content {
.iconfont {
margin-right: $gap-sm;
display: inline-block;
font-size: $value-size;
color: $color-text-divider;
.label {
margin-bottom: 0;
text-transform: uppercase;
color: $color-text-secondary;
}
.value {
font-weight: bold;
font-size: $value-size;
font-size: $font-size-h1 * 1.1;
}
}
}
Expand Down
13 changes: 8 additions & 5 deletions src/pages/archive/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
.archive-page {
.statistic-wrapper {
margin-top: $gap-lg;
padding: 1.4em 2em;
border-radius: $radius-sm;
background-color: $module-bg-translucent;
Expand All @@ -117,12 +116,16 @@
width: 100%;
}
.skeleton {
width: 6rem;
height: 3rem;
.skeletons {
padding: $gap-lg;
.skeleton {
width: 6rem;
height: 3rem;
}
}
.statistics {
padding: 1.4em 2em;
flex-wrap: wrap;
justify-content: space-between;
Expand Down Expand Up @@ -165,7 +168,7 @@
list-style: none;
.item {
padding: 2rem;
padding: $gap-lg;
background-color: $module-bg-translucent;
@include radius-box($radius-sm);
margin-bottom: $gap-lg;
Expand Down
2 changes: 1 addition & 1 deletion src/stores/archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type ArchiveTreeList = Array<{
export const useArchiveStore = defineStore('archive', () => {
const fetchStore = createFetchStore<Archive | null>({
data: null,
once: false,
once: true,
async fetcher() {
const response = await nodepress.get<Archive>('/archive')
return response.result
Expand Down

0 comments on commit 6e5c3c1

Please sign in to comment.