@signal9/era-ui 4.16.1 → 4.16.3

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.
@@ -209,6 +209,23 @@
209
209
  text-box-edge: cap alphabetic;
210
210
  }
211
211
 
212
+ /* The optical half of the trim. cap trimming is EXACT — the cap sits on the
213
+ * container inset to the pixel — but the LEFT side isn't: glyphs start with
214
+ * their side bearing (~0.07em of ink-free space inside the line box), so a
215
+ * geometrically-equal corner read top-tight. The first block gets that same
216
+ * allowance back as margin, in em so a heading's compensation scales with
217
+ * the heading — the corner then MEASURES slightly uneven and finally LOOKS
218
+ * even, which is the order optics always wins in.
219
+ *
220
+ * 0.15em, not the ~0.07em side-bearing alone: a first line is usually a
221
+ * heavy cap or a heading, and dense ink right at a boundary needs more
222
+ * room than a light vertical stem to feel equally far from it — the same
223
+ * reason display type sets its top margin above geometric equality. Tuned
224
+ * by eye against the left inset. */
225
+ .era-notes-prose :global(.tiptap > :first-child) {
226
+ margin-top: 0.15em;
227
+ }
228
+
212
229
  /* FALLBACK for engines without text-box (Firefox): the trim above silently
213
230
  * disappears there, and the first line opened ~0.47em too low (measured:
214
231
  * cap 16.4px from the top against 8px from the left, dense/mono) — the
@@ -225,7 +242,9 @@
225
242
  * this block and keep the exact version. */
226
243
  @supports not ((text-box-trim: trim-start) and (text-box-edge: cap alphabetic)) {
227
244
  .era-notes-prose :global(.tiptap > :first-child) {
228
- margin-top: -0.45em;
245
+ /* -0.45em of untrimmed leading, plus the same +0.15em optical
246
+ * allowance the trimmed path adds above. */
247
+ margin-top: -0.3em;
229
248
  }
230
249
  }
231
250
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "4.16.1",
3
+ "version": "4.16.3",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",