@hanology/cham-browser 0.4.51 → 0.4.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/src/views/PieceView.vue +18 -10
package/package.json
CHANGED
|
@@ -475,15 +475,17 @@ function tcy(n: number): string {
|
|
|
475
475
|
|
|
476
476
|
<nav class="v-nav">
|
|
477
477
|
<button v-if="adjacent.prev !== null" class="v-nav-btn" @click="navigate(-1)">
|
|
478
|
-
<span class="v-nav-
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
<span class="v-nav-content">
|
|
479
|
+
<span class="v-nav-info"><span class="v-nav-dir">▲</span><span class="v-nav-label">{{ t('piece.previous') }}</span></span>
|
|
480
|
+
<span class="v-nav-title">{{ getPiece(adjacent.prev)?.title }}</span>
|
|
481
|
+
</span>
|
|
481
482
|
</button>
|
|
482
483
|
<div v-else class="v-nav-spacer" />
|
|
483
484
|
<button v-if="adjacent.next !== null" class="v-nav-btn" @click="navigate(1)">
|
|
484
|
-
<span class="v-nav-
|
|
485
|
-
|
|
486
|
-
|
|
485
|
+
<span class="v-nav-content">
|
|
486
|
+
<span class="v-nav-info"><span class="v-nav-dir">▼</span><span class="v-nav-label">{{ t('piece.next') }}</span></span>
|
|
487
|
+
<span class="v-nav-title">{{ getPiece(adjacent.next)?.title }}</span>
|
|
488
|
+
</span>
|
|
487
489
|
</button>
|
|
488
490
|
</nav>
|
|
489
491
|
</div>
|
|
@@ -839,22 +841,28 @@ function tcy(n: number): string {
|
|
|
839
841
|
}
|
|
840
842
|
.v-nav-spacer { flex: 1; }
|
|
841
843
|
.v-nav-btn {
|
|
842
|
-
writing-mode: vertical-rl;
|
|
843
|
-
text-orientation: mixed;
|
|
844
844
|
padding: 20px 14px;
|
|
845
845
|
background: var(--surface);
|
|
846
846
|
border: 1px solid var(--border-light);
|
|
847
847
|
border-radius: 6px;
|
|
848
848
|
cursor: pointer;
|
|
849
849
|
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
850
|
-
line-height: 1.6;
|
|
851
|
-
position: relative;
|
|
852
850
|
}
|
|
853
851
|
.v-nav-btn:hover {
|
|
854
852
|
border-color: var(--gold);
|
|
855
853
|
box-shadow: 0 4px 20px rgba(var(--shadow-rgb), 0.1);
|
|
856
854
|
}
|
|
857
855
|
.v-nav-btn:hover .v-nav-title { color: var(--vermillion); }
|
|
856
|
+
.v-nav-content {
|
|
857
|
+
display: flex;
|
|
858
|
+
flex-direction: column;
|
|
859
|
+
writing-mode: vertical-rl;
|
|
860
|
+
text-orientation: mixed;
|
|
861
|
+
line-height: 1.6;
|
|
862
|
+
}
|
|
863
|
+
.v-nav-info {
|
|
864
|
+
display: block;
|
|
865
|
+
}
|
|
858
866
|
.v-nav-dir {
|
|
859
867
|
font-size: 16px; color: var(--vermillion);
|
|
860
868
|
margin-bottom: 0.3em;
|