@hanology/cham-browser 0.4.3 → 0.4.4

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.3",
3
+ "version": "0.4.4",
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",
@@ -276,16 +276,46 @@ onBeforeUnmount(() => {
276
276
  position: fixed;
277
277
  top: 72px;
278
278
  right: 20px;
279
- width: 300px;
280
- max-height: calc(100vh - 100px);
279
+ height: calc(100vh - 100px);
280
+ width: auto;
281
+ max-width: 300px;
282
+ writing-mode: vertical-rl;
283
+ text-orientation: mixed;
281
284
  background: var(--surface-warm);
282
285
  border: 1px solid var(--border);
283
286
  border-radius: 12px;
284
287
  box-shadow: 0 8px 40px rgba(var(--shadow-rgb), 0.12);
285
288
  z-index: 1000;
286
- overflow-y: auto;
289
+ overflow-x: auto;
287
290
  overscroll-behavior: contain;
288
291
  }
292
+ .ann-right-pane .ann-pane-inner {
293
+ padding: 14px 16px;
294
+ }
295
+ .ann-right-pane .ann-pane-close {
296
+ top: 10px;
297
+ right: auto;
298
+ left: 10px;
299
+ }
300
+ .ann-right-pane .ann-detail {
301
+ writing-mode: vertical-rl;
302
+ text-orientation: mixed;
303
+ }
304
+ .ann-right-pane .ann-detail-head {
305
+ flex-direction: column;
306
+ align-items: flex-start;
307
+ margin-bottom: 0;
308
+ margin-left: 8px;
309
+ }
310
+ .ann-right-pane .ann-detail-body {
311
+ padding-left: 0;
312
+ padding-top: 4px;
313
+ }
314
+ .ann-right-pane .ann-text-block {
315
+ writing-mode: vertical-rl;
316
+ text-orientation: mixed;
317
+ line-height: 2;
318
+ }
289
319
 
290
320
  .ann-pane-close {
291
321
  position: absolute;
@@ -779,7 +779,7 @@ function tcy(n: number): string {
779
779
  writing-mode: vertical-rl;
780
780
  text-orientation: mixed;
781
781
  display: flex;
782
- flex-direction: column;
782
+ flex-direction: row;
783
783
  align-items: center;
784
784
  gap: 8px;
785
785
  padding: 16px 8px;