@hanology/cham-browser 0.4.19 → 0.4.21
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
|
@@ -414,27 +414,32 @@ onBeforeUnmount(() => {
|
|
|
414
414
|
.ann-card.vertical {
|
|
415
415
|
writing-mode: vertical-rl;
|
|
416
416
|
text-orientation: mixed;
|
|
417
|
-
flex-direction:
|
|
417
|
+
flex-direction: column;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.ann-card.vertical .ann-card-head {
|
|
421
421
|
padding: 10px 6px;
|
|
422
|
+
border-bottom: none;
|
|
423
|
+
border-left: 1px solid var(--border-light);
|
|
422
424
|
}
|
|
423
425
|
|
|
424
426
|
.ann-card.vertical .ann-card-scroll {
|
|
425
427
|
display: flex;
|
|
426
|
-
flex-direction:
|
|
427
|
-
padding: 8px
|
|
428
|
-
overflow-
|
|
428
|
+
flex-direction: column;
|
|
429
|
+
padding: 8px 0;
|
|
430
|
+
overflow-x: auto;
|
|
431
|
+
overflow-y: hidden;
|
|
429
432
|
}
|
|
430
433
|
|
|
431
434
|
.ann-card.vertical .ann-entry {
|
|
435
|
+
flex-shrink: 0;
|
|
432
436
|
border-bottom: none;
|
|
433
|
-
padding:
|
|
437
|
+
padding: 0 10px;
|
|
438
|
+
border-right: 1px solid var(--border-light);
|
|
434
439
|
}
|
|
435
440
|
|
|
436
|
-
.ann-card.vertical .ann-entry
|
|
437
|
-
border-
|
|
441
|
+
.ann-card.vertical .ann-entry:first-child {
|
|
442
|
+
border-right: none;
|
|
438
443
|
}
|
|
439
444
|
|
|
440
445
|
.ann-card.vertical .ann-card-close {
|
|
@@ -466,21 +471,27 @@ onBeforeUnmount(() => {
|
|
|
466
471
|
writing-mode: horizontal-tb;
|
|
467
472
|
}
|
|
468
473
|
|
|
474
|
+
.ann-sheet.vertical .ann-sheet-head {
|
|
475
|
+
writing-mode: horizontal-tb;
|
|
476
|
+
}
|
|
477
|
+
|
|
469
478
|
.ann-sheet.vertical .ann-sheet-scroll {
|
|
470
479
|
display: flex;
|
|
471
|
-
flex-direction:
|
|
472
|
-
overflow-
|
|
473
|
-
overflow-
|
|
474
|
-
padding:
|
|
480
|
+
flex-direction: column;
|
|
481
|
+
overflow-x: auto;
|
|
482
|
+
overflow-y: hidden;
|
|
483
|
+
padding: 8px 0 24px;
|
|
475
484
|
}
|
|
476
485
|
|
|
477
486
|
.ann-sheet.vertical .ann-entry {
|
|
487
|
+
flex-shrink: 0;
|
|
478
488
|
border-bottom: none;
|
|
479
|
-
padding:
|
|
489
|
+
padding: 0 14px;
|
|
490
|
+
border-right: 1px solid var(--border-light);
|
|
480
491
|
}
|
|
481
492
|
|
|
482
|
-
.ann-sheet.vertical .ann-entry
|
|
483
|
-
border-
|
|
493
|
+
.ann-sheet.vertical .ann-entry:first-child {
|
|
494
|
+
border-right: none;
|
|
484
495
|
}
|
|
485
496
|
|
|
486
497
|
.ann-sheet.vertical .ann-pron-h {
|
|
@@ -160,8 +160,8 @@ export function useAnnotationTooltip() {
|
|
|
160
160
|
bottom: '0',
|
|
161
161
|
}
|
|
162
162
|
} else if (layout.value === 'vertical') {
|
|
163
|
-
// Vertical mode:
|
|
164
|
-
const cardW =
|
|
163
|
+
// Vertical mode: wide card with multi-column layout to the left
|
|
164
|
+
const cardW = 260
|
|
165
165
|
const cardH = Math.min(vh - 16, 480)
|
|
166
166
|
const gap = 12
|
|
167
167
|
let left = Math.max(8, rect.left - cardW - gap)
|