@hanology/cham-browser 0.4.26 → 0.4.28
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
|
@@ -155,21 +155,27 @@ onBeforeUnmount(() => {
|
|
|
155
155
|
<button class="ann-sheet-handle" @click="dismiss">
|
|
156
156
|
<span class="ann-handle-bar" />
|
|
157
157
|
</button>
|
|
158
|
-
<div
|
|
159
|
-
<
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
<div
|
|
164
|
-
<div class="ann-entry
|
|
165
|
-
<
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<div
|
|
170
|
-
|
|
158
|
+
<div class="ann-sheet-body" :class="{ vertical }">
|
|
159
|
+
<div v-if="headword" class="ann-sheet-head" :class="dominantKind()">
|
|
160
|
+
<span class="ann-headword">{{ headword }}</span>
|
|
161
|
+
<span class="ann-badge-count" v-if="annotations.length > 1">{{ annotations.length }}</span>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="ann-sheet-scroll">
|
|
164
|
+
<div v-for="ann in annotations" :key="ann.id" class="ann-entry">
|
|
165
|
+
<div class="ann-entry-header">
|
|
166
|
+
<span class="ann-kind" :class="ann.kind">{{ kindLabel(ann) }}</span>
|
|
167
|
+
<span v-if="layerLabel(ann)" class="ann-layer">{{ layerLabel(ann) }}</span>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="ann-entry-body">
|
|
170
|
+
<div v-if="getSegment(ann)" class="ann-pron-h"><PronunciationGroup :segment="getSegment(ann)!" /></div>
|
|
171
|
+
<div v-if="ann.text && ann.kind !== 'pronunciation'" class="ann-text">{{ ann.text }}</div>
|
|
172
|
+
</div>
|
|
171
173
|
</div>
|
|
172
174
|
</div>
|
|
175
|
+
<div v-if="headword" class="ann-sheet-v-head" :class="dominantKind()">
|
|
176
|
+
<span class="ann-sheet-v-word">{{ headword }}</span>
|
|
177
|
+
<span v-if="annotations.length > 1" class="ann-badge-count-v">{{ annotations.length }}</span>
|
|
178
|
+
</div>
|
|
173
179
|
</div>
|
|
174
180
|
</div>
|
|
175
181
|
</Transition>
|
|
@@ -467,44 +473,69 @@ onBeforeUnmount(() => {
|
|
|
467
473
|
line-height: 2;
|
|
468
474
|
}
|
|
469
475
|
|
|
470
|
-
.ann-sheet
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
flex-direction:
|
|
476
|
+
.ann-sheet-body {
|
|
477
|
+
flex: 1;
|
|
478
|
+
display: flex;
|
|
479
|
+
flex-direction: column;
|
|
480
|
+
overflow: hidden;
|
|
481
|
+
min-height: 0;
|
|
474
482
|
}
|
|
475
483
|
|
|
476
|
-
.ann-sheet.vertical
|
|
477
|
-
|
|
484
|
+
.ann-sheet-body.vertical {
|
|
485
|
+
flex-direction: row-reverse;
|
|
478
486
|
}
|
|
479
487
|
|
|
480
|
-
.ann-sheet.vertical .ann-sheet-head {
|
|
481
|
-
|
|
488
|
+
.ann-sheet-body.vertical > .ann-sheet-head {
|
|
489
|
+
display: none;
|
|
482
490
|
}
|
|
483
491
|
|
|
484
|
-
.ann-sheet.vertical .ann-sheet-
|
|
485
|
-
display:
|
|
486
|
-
flex-direction: column;
|
|
487
|
-
overflow-x: auto;
|
|
488
|
-
overflow-y: hidden;
|
|
489
|
-
padding: 8px 0 24px;
|
|
492
|
+
.ann-sheet-body:not(.vertical) > .ann-sheet-v-head {
|
|
493
|
+
display: none;
|
|
490
494
|
}
|
|
491
495
|
|
|
492
|
-
.ann-sheet
|
|
496
|
+
.ann-sheet-v-head {
|
|
497
|
+
writing-mode: vertical-rl;
|
|
498
|
+
text-orientation: upright;
|
|
499
|
+
display: flex;
|
|
500
|
+
flex-direction: row;
|
|
501
|
+
align-items: center;
|
|
502
|
+
gap: 8px;
|
|
503
|
+
padding: 12px 10px;
|
|
504
|
+
border-left: 1px solid var(--border-light);
|
|
493
505
|
flex-shrink: 0;
|
|
494
|
-
border-bottom: none;
|
|
495
|
-
padding: 0 14px;
|
|
496
|
-
border-right: 1px solid var(--border-light);
|
|
497
506
|
}
|
|
498
507
|
|
|
499
|
-
.ann-sheet
|
|
500
|
-
|
|
508
|
+
.ann-sheet-v-word {
|
|
509
|
+
font-family: var(--serif);
|
|
510
|
+
font-size: 20px;
|
|
511
|
+
font-weight: 900;
|
|
512
|
+
letter-spacing: 6px;
|
|
513
|
+
color: var(--ink);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.ann-badge-count-v {
|
|
517
|
+
font-family: var(--sans);
|
|
518
|
+
font-size: 11px;
|
|
519
|
+
font-weight: 700;
|
|
520
|
+
color: var(--ink-faint);
|
|
521
|
+
background: var(--surface-warm);
|
|
522
|
+
border: 1px solid var(--border-light);
|
|
523
|
+
border-radius: 10px;
|
|
524
|
+
padding: 2px 8px;
|
|
525
|
+
letter-spacing: 0;
|
|
526
|
+
writing-mode: horizontal-tb;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.ann-sheet-body.vertical .ann-sheet-scroll {
|
|
530
|
+
flex: 1;
|
|
531
|
+
min-width: 0;
|
|
501
532
|
}
|
|
502
533
|
|
|
503
|
-
.ann-sheet.vertical .ann-pron-h {
|
|
534
|
+
.ann-sheet-body.vertical .ann-pron-h {
|
|
504
535
|
writing-mode: horizontal-tb;
|
|
505
536
|
}
|
|
506
537
|
|
|
507
|
-
.ann-sheet.vertical .ann-text {
|
|
538
|
+
.ann-sheet-body.vertical .ann-text {
|
|
508
539
|
white-space: pre-line;
|
|
509
540
|
line-height: 2;
|
|
510
541
|
}
|