Skip to content

Commit

Permalink
fix: ui bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilfish committed Mar 8, 2024
1 parent be98c76 commit ccd3a15
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ useSeoMeta({
twitterCreator: 'chilllish',
})
useHead({
htmlAttrs: {
lang: 'zh-CN',
},
meta: [
{
name: 'viewport',
content: 'width=device-width, initial-scale=1.0',
},
],
})
const loaded = ref(false)
onNuxtReady(() => {
const publicStore = usePublicStore()
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/src/UserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const avatar = computed(() => {
fallback-src="/placeholder.webp"
:size="56"
:src="avatar"
:img-props="{
alt: `${user.name} avatar`,
title: `${user.name} avatar`,
}"
class="ring-2 ring-white"
/>
<div>
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/src/post/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,8 @@ article.post {
.post:hover .copy-id {
opacity: 1 !important;
}
.post .n-collapse-item__content-inner {
padding: 0 !important;
}
</style>
4 changes: 4 additions & 0 deletions packages/ui/src/post/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const avatar = computed(() => {
fallback-src="/placeholder.webp"
:size="30"
:src="avatar"
:img-props="{
alt: `${user.screen_name} avatar`,
title: `${user.screen_name} avatar`,
}"
/>

<span
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/settings/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const version = import.meta.env.VITE_APP_VERSION
<n-image
:width="82"
:height="82"
class="w-24"
preview-disabled
alt="logo"
src="/icon.png"
Expand Down

0 comments on commit ccd3a15

Please sign in to comment.