fix: better mobile usage

This commit is contained in:
Julien Calixte
2026-02-15 19:42:42 +01:00
parent ff8795581e
commit 8e754021bd
4 changed files with 33 additions and 12 deletions

View File

@@ -12,8 +12,6 @@ import { downloadFont } from "@/utils/downloadFont"
import { computedAsync } from "@vueuse/core"
import { computed, nextTick, watch } from "vue"
import { useResizeContainer } from "@/hooks/useResizeContainer.hook"
import { publicNoteEventBus } from "@/bus/publicNoteEventBus"
import { errorMessage } from "@/utils/notif"
const props = defineProps<{ did: string; rkey: string }>()
const did = computed(() => props.did)
@@ -57,6 +55,7 @@ const content = computed(() =>
)
: "",
)
const publishedAt = computed(() =>
noteRecord.value?.value.publishedAt
? new Date(noteRecord.value?.value.publishedAt).toLocaleDateString()
@@ -89,7 +88,7 @@ watch(
>
</div>
<span class="badge badge-author" v-if="author">
<span class="badge badge-author" v-if="author && content">
<router-link
:to="{ name: 'PublicNoteListByDidView', params: { did: did } }"
class="link link-hover"
@@ -204,5 +203,17 @@ watch(
max-width: var(--note-width);
}
}
@media screen and (max-width: 768px) {
flex-wrap: wrap;
.repo-title-breadcrumb {
display: none;
}
.article article {
margin-top: 48px;
}
}
}
</style>