chore: bug fix #20

This commit is contained in:
engigu
2026-04-07 22:06:53 +08:00
parent 6cc2b8af0a
commit 90ec815a69
3 changed files with 72 additions and 5 deletions
+13 -1
View File
@@ -160,7 +160,7 @@ onMounted(() => {
<Menu class="h-5 w-5 text-muted-foreground" />
</Button>
<div class="flex flex-col sm:flex-row sm:items-baseline sm:gap-2 truncate">
<span class="text-sm text-muted-foreground truncate font-medium" :title="sentence">
<span class="text-sm text-muted-foreground truncate font-medium poem-sentence" :title="sentence">
<span class="hidden sm:inline">{{ sentence }}</span>
<span class="sm:hidden">{{ sentenceContent }}</span>
</span>
@@ -201,4 +201,16 @@ onMounted(() => {
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.1);
}
.poem-sentence {
transition: opacity 0.3s ease;
}
@media (max-width: 639px) {
.poem-sentence {
font-weight: 400 !important;
opacity: 0.7 !important;
letter-spacing: 0.01em;
}
}
</style>