@studiocms/ui 0.4.7 → 0.4.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.
@@ -28,6 +28,9 @@
28
28
  border-top: 1px solid hsl(var(--border));
29
29
  padding: 1rem;
30
30
  }
31
+ .sui-card-footer:not(:has(*)) {
32
+ display: none;
33
+ }
31
34
  .filled .sui-card-footer {
32
35
  border: none;
33
36
  }
@@ -71,6 +71,8 @@ for (const attr in attributes) {
71
71
  renderAttribsHTML += ` ${attr}="${attributes[attr]}"`;
72
72
  }
73
73
 
74
- const svg = `<svg style="min-width: ${attributes.height || 24}px" xmlns="http://www.w3.org/2000/svg"${renderAttribsHTML}>${body}</svg>`;
74
+ const viewBox = renderData.attributes.viewBox;
75
+
76
+ const svg = `<svg style="min-width: ${attributes.height || 24}px" xmlns="http://www.w3.org/2000/svg"${renderAttribsHTML}${viewBox && ` viewbox="${viewBox}"`}>${body}</svg>`;
75
77
  ---
76
78
  <Fragment set:html={svg} />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studiocms/ui",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "The UI library for StudioCMS. Includes the layouts & components we use to build StudioCMS.",
5
5
  "repository": {
6
6
  "type": "git",