@signal9/era-ui 4.15.5 → 4.16.1

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.
@@ -45,7 +45,7 @@
45
45
  {...restProps}
46
46
  >
47
47
  <pre
48
- class="overflow-x-auto px-(--era-field-px) py-(--era-inset-md) pr-[calc(var(--era-field-px)+var(--era-h-sm)+var(--era-field-px))] font-mono text-body leading-body text-fg"><code
48
+ class="overflow-x-auto px-(--era-field-px) py-(--era-inset-md) pr-[calc(var(--era-sm-inset-lg)+var(--era-h-sm)+var(--era-field-px))] font-mono text-body leading-body text-fg"><code
49
49
  >{#if children}{@render children()}{:else}{code}{/if}</code
50
50
  ></pre>
51
51
  {#if copyable}
@@ -53,9 +53,16 @@
53
53
  long lines would show through a chromeless one. It carries the block's
54
54
  OWN fill, so at rest it is pixel-identical to no background — it just
55
55
  occludes whatever scrolls beneath. -->
56
+ <!-- --era-sm-inset-lg on BOTH axes: an sm control in an rd-lg corner, and
57
+ the token IS the concentric inset for that pairing (rd-lg − rd-sm =
58
+ (h-lg − h-sm)/2 — the corner identity). The old offsets centred the
59
+ button against the first TEXT LINE with the line-height constant baked
60
+ in, which broke the moment the leading changed and was never the
61
+ corner's own law: the button sat 4.75px from the top and 6.15px from
62
+ the right edge at dense, visibly off the curve. -->
56
63
  <CopyButton
57
64
  text={copyText}
58
- class="absolute top-[calc(var(--era-inset-md)+(var(--era-text)*1.625-var(--era-h-sm))/2)] right-[calc(var(--era-field-px)+(var(--era-text)*1.625-var(--era-h-sm))/2)] bg-(--era-field-bg)"
65
+ class="absolute top-(--era-sm-inset-lg) right-(--era-sm-inset-lg) bg-(--era-field-bg)"
59
66
  />
60
67
  {/if}
61
68
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "4.15.5",
3
+ "version": "4.16.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",