fix: chapter picker slides up from bottom-right, footer details float above bar

This commit is contained in:
2026-06-12 12:53:37 +08:00
parent faca71ea6e
commit c8eb433083

View File

@@ -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,