@hanology/cham-browser 0.4.45 → 0.4.47

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.45",
3
+ "version": "0.4.47",
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",
@@ -125,8 +125,8 @@ onBeforeUnmount(() => {
125
125
  @mouseleave="emit('tooltipLeave')"
126
126
  >
127
127
  <div v-if="headword" class="ann-card-head" :class="dominantKind()">
128
- <span class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}</span>
129
- <span class="ann-headword">{{ headword }}</span>
128
+ <div class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}</div>
129
+ <div class="ann-headword">{{ headword }}</div>
130
130
  </div>
131
131
  <button class="ann-card-close" @click="dismiss" aria-label="關閉">
132
132
  <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3"><path d="M18 6L6 18M6 6l12 12"/></svg>
@@ -158,8 +158,8 @@ onBeforeUnmount(() => {
158
158
  </button>
159
159
  <div class="ann-sheet-body" :class="{ vertical }">
160
160
  <div v-if="headword" class="ann-sheet-head" :class="dominantKind()">
161
- <span class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}</span>
162
- <span class="ann-headword">{{ headword }}</span>
161
+ <div class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}</div>
162
+ <div class="ann-headword">{{ headword }}</div>
163
163
  </div>
164
164
  <div class="ann-sheet-scroll">
165
165
  <div v-for="ann in annotations" :key="ann.id" class="ann-entry">
@@ -204,22 +204,17 @@ onBeforeUnmount(() => {
204
204
  }
205
205
 
206
206
  .ann-badge-count {
207
- display: inline-block;
208
207
  padding: 1px 7px;
209
- border-radius: 3px;
210
208
  font-size: 10px;
211
209
  font-family: var(--sans);
212
210
  font-weight: 700;
213
211
  letter-spacing: 1px;
214
212
  line-height: 1.5;
215
- background: var(--vermillion);
216
- color: #fff;
217
- margin-bottom: 5px;
213
+ color: var(--vermillion);
218
214
  }
219
215
 
220
216
  /* ─── Annotation entry ─── */
221
217
  .ann-entry {
222
- padding: 10px 0;
223
218
  border-bottom: 1px solid var(--border-light);
224
219
  font-size: 14px;
225
220
  color: var(--ink-mid);
@@ -453,7 +448,7 @@ onBeforeUnmount(() => {
453
448
  text-orientation: upright;
454
449
  padding: 6px 8px;
455
450
  border-bottom: none;
456
- border-right: 1px solid var(--border-light);
451
+ border-left: 1px solid var(--border-light);
457
452
  flex-direction: row;
458
453
  align-items: center;
459
454
  flex-shrink: 0;
@@ -462,11 +457,9 @@ onBeforeUnmount(() => {
462
457
  border-right: none;
463
458
  border-left: 1px solid var(--border-light);
464
459
  }
465
- .ann-card.vertical .ann-headword {
466
- letter-spacing: 6px;
467
- }
468
460
  .ann-card.vertical .ann-badge-count {
469
- writing-mode: horizontal-tb;
461
+ writing-mode: vertical-rl;
462
+ margin-bottom: 5px;
470
463
  }
471
464
 
472
465
  .ann-card.vertical .ann-card-scroll {