@uniweb/kit 0.10.8 → 0.10.9

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": "@uniweb/kit",
3
- "version": "0.10.8",
3
+ "version": "0.10.9",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -43,8 +43,8 @@
43
43
  "shiki": "^3.0.0",
44
44
  "tailwind-merge": "^3.6.0",
45
45
  "@uniweb/core": "0.8.0",
46
- "@uniweb/scene": "0.1.2",
47
- "@uniweb/semantic-parser": "1.2.0"
46
+ "@uniweb/semantic-parser": "1.2.0",
47
+ "@uniweb/scene": "0.1.2"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^19.0.0",
@@ -148,3 +148,24 @@ math mtable.tml-jot mtd { padding-top: 0.7ex; padding-bottom: 0.7ex; }
148
148
  body {
149
149
  counter-reset: tmlEqnNo;
150
150
  }
151
+ /* Display math needs CSS block layout, not MathML layout, for an equation TAG
152
+ to reach the right margin: the tag rides in an mtable whose `width:100%`
153
+ Chromium ignores under `display: block math`, collapsing the spacer cells so
154
+ "(1)" sits glued to the equation instead of at the margin.
155
+
156
+ `!important` is not decoration. Temml emits `style="display:block math"` on
157
+ every display formula unconditionally — no option turns it off — so an inline
158
+ style beats any rule we write, including Temml's own `math.tml-display
159
+ { display: block }`, which is exactly what this restores. Fixing it here
160
+ rather than in the generator also repairs math that was already built.
161
+
162
+ Scoped with :has() to formulas that actually carry a tag. Switching every
163
+ display formula to CSS block layout would left-align the lot -- MathML layout
164
+ is what centres them -- so an unnumbered derivation or matrix keeps
165
+ `display: block math` and stays centred. Where :has() is unsupported the tag
166
+ simply does not reach the margin; nothing else changes. */
167
+ math.tml-display:has(.tml-eqn) {
168
+ display: block !important;
169
+ width: 100%;
170
+ }
171
+