From c8eb4330831d585d751f2841e49d1f58bdaa4672 Mon Sep 17 00:00:00 2001 From: cocos02 Date: Fri, 12 Jun 2026 12:53:37 +0800 Subject: [PATCH] fix: chapter picker slides up from bottom-right, footer details float above bar --- src/components/StoryGallery.vue | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/components/StoryGallery.vue b/src/components/StoryGallery.vue index aca4b35..8c60ce1 100644 --- a/src/components/StoryGallery.vue +++ b/src/components/StoryGallery.vue @@ -374,6 +374,7 @@ const tree = computed(() => buildTreeForChapter(currentChapterId.value)) } .footer-left { + position: relative; flex: 1; display: flex; flex-direction: column; @@ -400,9 +401,13 @@ const tree = computed(() => buildTreeForChapter(currentChapterId.value)) } .footer-details { + position: absolute; + bottom: 100%; + left: 20px; display: flex; align-items: center; gap: 16px; + margin-bottom: 8px; } .footer-stat { @@ -491,6 +496,21 @@ const tree = computed(() => buildTreeForChapter(currentChapterId.value)) transform: translateY(8px); } +.chapter-picker { + position: absolute; + bottom: 56px; + right: 20px; + z-index: 300; +} + +.picker-panel { + background: #12121a; + border: 1px solid rgba(201,168,76,0.15); + border-radius: 12px; + padding: 24px 28px; + box-shadow: 0 8px 32px rgba(0,0,0,0.6); +} + .picker-title { text-align: center; font-size: 20px; @@ -602,7 +622,12 @@ const tree = computed(() => buildTreeForChapter(currentChapterId.value)) .picker-fade-enter-active, .picker-fade-leave-active { - transition: opacity 0.2s ease; + transition: all 0.2s ease; +} +.picker-fade-enter-from, +.picker-fade-leave-to { + opacity: 0; + transform: translateY(12px); } .picker-fade-enter-from,