@hanology/cham-browser 0.4.49 → 0.4.51

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.49",
3
+ "version": "0.4.51",
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
- <div class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}</div>
129
128
  <div class="ann-headword">{{ headword }}</div>
129
+ <div class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}注</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
- <div class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}</div>
162
161
  <div class="ann-headword">{{ headword }}</div>
162
+ <div class="ann-badge-count" v-if="annotations.length > 1">{{ toChineseNumber(annotations.length) }}注</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">
@@ -175,7 +175,7 @@ onBeforeUnmount(() => {
175
175
  </div>
176
176
  <div v-if="headword" class="ann-sheet-v-head" :class="dominantKind()">
177
177
  <span class="ann-sheet-v-word">{{ headword }}</span>
178
- <span v-if="annotations.length > 1" class="ann-badge-count-v">{{ toChineseNumber(annotations.length) }}</span>
178
+ <span v-if="annotations.length > 1" class="ann-badge-count-v">{{ toChineseNumber(annotations.length) }}注</span>
179
179
  </div>
180
180
  </div>
181
181
  </div>
@@ -857,14 +857,14 @@ function tcy(n: number): string {
857
857
  .v-nav-btn:hover .v-nav-title { color: var(--vermillion); }
858
858
  .v-nav-dir {
859
859
  font-size: 16px; color: var(--vermillion);
860
- margin-bottom: 0.5em;
860
+ margin-bottom: 0.3em;
861
861
  }
862
862
  .v-nav-label {
863
863
  font-size: 11px; color: var(--ink-faint);
864
864
  font-family: var(--sans); letter-spacing: 2px;
865
- margin-bottom: 0.5em;
866
865
  }
867
866
  .v-nav-title {
867
+ display: block;
868
868
  font-size: 18px; font-weight: 700;
869
869
  letter-spacing: 3px; color: var(--ink);
870
870
  transition: color 0.25s ease;