Skip to content

Commit

Permalink
fix(web): styles and infos
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilfish committed Aug 5, 2024
1 parent 394491d commit 26dc3b4
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/pages/post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const hasPosts = ref(false)
<n-image
class="mx-auto sm:w-1/2"
preview-disabled
src="https://p.chilfish.top/weibo/feature.webp"
src="https://p.chilfish.top/weibo/cover.webp"
alt="features"
:img-props="{
class: 'rounded-2! shadow-lg',
Expand Down
9 changes: 9 additions & 0 deletions packages/ui/src/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,12 @@ const imgWidth = computed(() => {
</n-image-group>
</div>
</template>

<style scoped>
.n-image {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
</style>
5 changes: 0 additions & 5 deletions packages/ui/src/MainImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ onUnmounted(() => {
$width: 7rem;
.n-image {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
img {
min-width: $width !important;
border-radius: 4px;
Expand Down
26 changes: 17 additions & 9 deletions packages/ui/src/settings/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,21 @@ const {
</a>
</div>

<h2 class="text-6 font-bold">
<h2 class="text-7 font-bold">
Weibo Archiver v{{ version }}

<a
:href="commitUrl"
target="_blank"
:title="`查看提交,最后一次构建于${formatDate(commitDate, 'YYYY/MM/DD-HH:ss')}`"
>
@{{ commitHash }}
</a>
<n-tooltip trigger="hover">
<template #trigger>
<a
:href="commitUrl"
target="_blank"
class="text-5"
>
@{{ commitHash }}
</a>
</template>
最新一次构建于 {{ formatDate(commitDate) }}
</n-tooltip>
</h2>

<h3 class="text-5">
Expand All @@ -80,7 +85,10 @@ const {

<span>
,或者在
<RouterLink to="/example">
<RouterLink
class="font-bold underline"
to="/example"
>
这里
</RouterLink>
查看示例数据
Expand Down

0 comments on commit 26dc3b4

Please sign in to comment.