@hanology/cham-browser 0.4.46 → 0.4.48
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
CHANGED
|
@@ -125,8 +125,8 @@ onBeforeUnmount(() => {
|
|
|
125
125
|
@mouseleave="emit('tooltipLeave')"
|
|
126
126
|
>
|
|
127
127
|
<div v-if="headword" class="ann-card-head" :class="dominantKind()">
|
|
128
|
-
<
|
|
129
|
-
<
|
|
128
|
+
<div class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}</div>
|
|
129
|
+
<div class="ann-headword">{{ headword }}</div>
|
|
130
130
|
</div>
|
|
131
131
|
<button class="ann-card-close" @click="dismiss" aria-label="關閉">
|
|
132
132
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3"><path d="M18 6L6 18M6 6l12 12"/></svg>
|
|
@@ -158,8 +158,8 @@ onBeforeUnmount(() => {
|
|
|
158
158
|
</button>
|
|
159
159
|
<div class="ann-sheet-body" :class="{ vertical }">
|
|
160
160
|
<div v-if="headword" class="ann-sheet-head" :class="dominantKind()">
|
|
161
|
-
<
|
|
162
|
-
<
|
|
161
|
+
<div class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}</div>
|
|
162
|
+
<div class="ann-headword">{{ headword }}</div>
|
|
163
163
|
</div>
|
|
164
164
|
<div class="ann-sheet-scroll">
|
|
165
165
|
<div v-for="ann in annotations" :key="ann.id" class="ann-entry">
|
|
@@ -204,22 +204,17 @@ onBeforeUnmount(() => {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.ann-badge-count {
|
|
207
|
-
display: inline-block;
|
|
208
207
|
padding: 1px 7px;
|
|
209
|
-
border-radius: 3px;
|
|
210
208
|
font-size: 10px;
|
|
211
209
|
font-family: var(--sans);
|
|
212
210
|
font-weight: 700;
|
|
213
211
|
letter-spacing: 1px;
|
|
214
212
|
line-height: 1.5;
|
|
215
|
-
|
|
216
|
-
color: #fff;
|
|
217
|
-
margin-bottom: 5px;
|
|
213
|
+
color: var(--vermillion);
|
|
218
214
|
}
|
|
219
215
|
|
|
220
216
|
/* ─── Annotation entry ─── */
|
|
221
217
|
.ann-entry {
|
|
222
|
-
padding: 10px 0;
|
|
223
218
|
border-bottom: 1px solid var(--border-light);
|
|
224
219
|
font-size: 14px;
|
|
225
220
|
color: var(--ink-mid);
|
|
@@ -453,7 +448,7 @@ onBeforeUnmount(() => {
|
|
|
453
448
|
text-orientation: upright;
|
|
454
449
|
padding: 6px 8px;
|
|
455
450
|
border-bottom: none;
|
|
456
|
-
border-
|
|
451
|
+
border-left: 1px solid var(--border-light);
|
|
457
452
|
flex-direction: row;
|
|
458
453
|
align-items: center;
|
|
459
454
|
flex-shrink: 0;
|
|
@@ -463,7 +458,8 @@ onBeforeUnmount(() => {
|
|
|
463
458
|
border-left: 1px solid var(--border-light);
|
|
464
459
|
}
|
|
465
460
|
.ann-card.vertical .ann-badge-count {
|
|
466
|
-
writing-mode:
|
|
461
|
+
writing-mode: vertical-rl;
|
|
462
|
+
margin-bottom: 5px;
|
|
467
463
|
}
|
|
468
464
|
|
|
469
465
|
.ann-card.vertical .ann-card-scroll {
|