@grove-dev/astro 0.5.3 → 0.5.4

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": "@grove-dev/astro",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "description": "Composable Astro UI, data adapters, and integration for Grove directories.",
6
6
  "license": "MIT",
@@ -61,7 +61,7 @@
61
61
  "sanitize-html": "^2.17.5",
62
62
  "shiki": "^1.29.2",
63
63
  "yaml": "^2.9.0",
64
- "@grove-dev/core": "0.5.3"
64
+ "@grove-dev/core": "0.5.4"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "astro": "^6.0.0 || ^7.0.0"
@@ -168,6 +168,14 @@ const fallbackStyle = `width:${size}px;height:${size}px;font-size:${Math.max(10,
168
168
  src={src}
169
169
  width={size}
170
170
  height={size}
171
+ {/* The `width`/`height` attributes are only presentational
172
+ hints. These SVGs carry a `viewBox` and no intrinsic size,
173
+ so once one loads the browser re-derives the box and the
174
+ row reflows — Lighthouse reports it as "media element
175
+ lacking an explicit size" and it cost the browse page
176
+ 0.115 CLS. An explicit CSS size pins the box before the
177
+ first byte arrives. */}
178
+ style={`width:${size}px;height:${size}px`}
171
179
  alt=""
172
180
  class:list={["inline-block shrink-0 align-middle", className]}
173
181
  loading="lazy"