@hanology/cham-browser 0.4.20 → 0.4.22
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,36 @@ 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
|
+
overflow-y: hidden;
|
|
419
|
+
overflow-x: hidden;
|
|
418
420
|
}
|
|
419
421
|
|
|
420
422
|
.ann-card.vertical .ann-card-head {
|
|
421
423
|
padding: 10px 6px;
|
|
424
|
+
border-bottom: none;
|
|
425
|
+
border-left: 1px solid var(--border-light);
|
|
422
426
|
}
|
|
423
427
|
|
|
424
428
|
.ann-card.vertical .ann-card-scroll {
|
|
425
429
|
display: flex;
|
|
426
|
-
flex-direction:
|
|
427
|
-
padding: 8px
|
|
428
|
-
overflow-
|
|
430
|
+
flex-direction: column;
|
|
431
|
+
padding: 8px 0;
|
|
432
|
+
overflow-x: auto;
|
|
433
|
+
overflow-y: hidden;
|
|
429
434
|
}
|
|
430
435
|
|
|
431
436
|
.ann-card.vertical .ann-entry {
|
|
437
|
+
flex-shrink: 0;
|
|
432
438
|
border-bottom: none;
|
|
433
|
-
padding:
|
|
439
|
+
padding: 0 10px;
|
|
440
|
+
border-right: 1px solid var(--border-light);
|
|
441
|
+
max-height: inherit;
|
|
442
|
+
overflow-y: hidden;
|
|
434
443
|
}
|
|
435
444
|
|
|
436
|
-
.ann-card.vertical .ann-entry
|
|
437
|
-
border-
|
|
445
|
+
.ann-card.vertical .ann-entry:first-child {
|
|
446
|
+
border-right: none;
|
|
438
447
|
}
|
|
439
448
|
|
|
440
449
|
.ann-card.vertical .ann-card-close {
|
|
@@ -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)
|
|
@@ -200,7 +200,7 @@ export function useAnnotationTooltip() {
|
|
|
200
200
|
visible.value = true
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
function hide() { visible.value = false
|
|
203
|
+
function hide() { visible.value = false }
|
|
204
204
|
function toggle(event: MouseEvent, annotations: Annotation[]) {
|
|
205
205
|
if (visible.value) {
|
|
206
206
|
const currentIds = items.value.map(a => a.id).sort().join(',')
|