@godxjp/ui 13.16.3 → 13.16.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.
@@ -80,6 +80,11 @@
80
80
  color: hsl(var(--info));
81
81
  }
82
82
 
83
+ /* Body stacks text vertically (title over description). The ≥sm two-column
84
+ * layout exists ONLY to push an actions slot to the end — gate it on
85
+ * :has(alert-actions), otherwise bare AlertTitle + AlertDescription (the
86
+ * catalog example, AlertQueryError, the docs page) split into meaningless
87
+ * side-by-side columns (godxjp-ui#106). */
83
88
  [data-slot="alert-body"] {
84
89
  display: flex;
85
90
  flex: 1;
@@ -89,10 +94,23 @@
89
94
  }
90
95
 
91
96
  @media (min-width: 640px) {
92
- [data-slot="alert-body"] {
93
- flex-direction: row;
94
- align-items: flex-start;
95
- justify-content: space-between;
97
+ [data-slot="alert-body"]:has(> [data-slot="alert-actions"]) {
98
+ display: grid;
99
+ grid-template-columns: minmax(0, 1fr) auto;
100
+ column-gap: var(--alert-space-gap);
101
+ row-gap: var(--alert-inner-space-gap);
102
+ align-items: start;
103
+ }
104
+
105
+ [data-slot="alert-body"]:has(> [data-slot="alert-actions"])
106
+ > :not([data-slot="alert-actions"]) {
107
+ grid-column: 1;
108
+ }
109
+
110
+ [data-slot="alert-body"]:has(> [data-slot="alert-actions"])
111
+ > [data-slot="alert-actions"] {
112
+ grid-column: 2;
113
+ grid-row: 1;
96
114
  }
97
115
  }
98
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@godxjp/ui",
3
- "version": "13.16.3",
3
+ "version": "13.16.4",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@10.29.1",
6
6
  "sideEffects": false,