@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanology/cham-browser",
3
- "version": "0.4.19",
3
+ "version": "0.4.21",
4
4
  "description": "CHAM — browser-compatible parser, serializer, and site generator for Classical Han Annotated Markdown",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -414,27 +414,32 @@ onBeforeUnmount(() => {
414
414
  .ann-card.vertical {
415
415
  writing-mode: vertical-rl;
416
416
  text-orientation: mixed;
417
- flex-direction: row;
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: row;
427
- padding: 8px 6px;
428
- overflow-y: auto;
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: 8px 0;
437
+ padding: 0 10px;
438
+ border-right: 1px solid var(--border-light);
434
439
  }
435
440
 
436
- .ann-card.vertical .ann-entry + .ann-entry {
437
- border-top: 1px solid var(--border-light);
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: row;
472
- overflow-y: auto;
473
- overflow-x: hidden;
474
- padding: 4px 16px 24px;
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: 8px 0;
489
+ padding: 0 14px;
490
+ border-right: 1px solid var(--border-light);
480
491
  }
481
492
 
482
- .ann-sheet.vertical .ann-entry + .ann-entry {
483
- border-top: 1px solid var(--border-light);
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: tall narrow card to the left of the annotation
164
- const cardW = 180
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)