💄 调整头图高度与标题字号以适配不同屏幕

This commit is contained in:
2026-11-18 11:04:39 +08:00
parent 991c83fcb3
commit dab9d8cb57
2 changed files with 8 additions and 7 deletions
+6 -5
View File
@@ -106,18 +106,19 @@ provideNavbarHeight(navbarHeight);
<div class="bg-old-neutral-50 dark:bg-[#0b0d0d] w-full min-h-screen h-full">
<UApp>
<div
:class=" (collapsed ? 'h-[20vh]': 'h-[40vh]')"
class="flex flex-col relative transition-[height] duration-500 max-h-80 min-h-40">
<!-- header -->
:class="collapsed
? 'h-[clamp(8rem,11.25vw,27rem)]'
: 'h-[clamp(12rem,16.6667vw,40rem)]'"
class="flex flex-col relative transition-[height] duration-500">
<div
@mouseenter="startCollapseCountdown()" @mouseleave="stopCollapseCountDownAndStopCollapse()">
<div
class="flex bg-top absolute w-full h-full bg-[url('/79d52228c770808810a310115567e6790380823a.webp')] dark:bg-[url('/anime-8788959.webp')]">
class="flex bg-top absolute w-full h-full bg-[url('/79d52228c770808810a310115567e6790380823a.webp')] dark:bg-[url('/anime-8788959.webp')] bg-cover bg-no-repeat">
<slot name="header"/>
</div>
<div v-if="isScrollDown">
<div
class="opacity-80 dark:opacity-20 max-h-12 flex w-full h-full fixed bg-[url('/79d52228c770808810a310115567e6790380823a.webp')] dark:bg-[url('/anime-8788959.webp')] bg-cover bg-top dark:bg-center"/>
class="opacity-80 dark:opacity-20 max-h-12 flex w-full h-full fixed bg-[url('/79d52228c770808810a310115567e6790380823a.webp')] dark:bg-[url('/anime-8788959.webp')] bg-cover bg-no-repeat bg-top dark:bg-center"/>
</div>
</div>
<!-- navbar -->
+2 -2
View File
@@ -23,7 +23,7 @@ onMounted(async () => {
>
<div
v-if="isScrollDown && breakpointsHelper.greaterOrEqual('xl').value"
class="pl-5 text-xl h-12 leading-11 flex">
class="pl-5 text-xl h-12 flex items-center text-nowrap">
随机存取
</div>
</Transition>
@@ -38,7 +38,7 @@ onMounted(async () => {
</template>
<template #header>
<div class="w-full flex-1 justify-center flex items-center">
<p class="text-8xl mt-12">
<p class="text-[clamp(2.25rem,5vw,12rem)] leading-none mt-12">
随机存取
</p>
</div>