@spunto/design-system 0.7.1 → 0.7.2
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
|
@@ -179,12 +179,16 @@ const Terminal = forwardRef<TerminalHandle, TerminalProps>(function Terminal(
|
|
|
179
179
|
ref={outerRef}
|
|
180
180
|
data-slot="terminal"
|
|
181
181
|
className={cn(
|
|
182
|
+
// No border-radius by default: this is a minimal primitive, so it
|
|
183
|
+
// doesn't impose a corner style — square edges drop cleanly into any
|
|
184
|
+
// container (a panel, a card, edge-to-edge). Consumers add `rounded-*`
|
|
185
|
+
// via className when they want it.
|
|
182
186
|
// `[contain:inline-size]` stops this box's (fit-driven, ever-changing)
|
|
183
187
|
// content width from feeding back into an ancestor's shrink-to-fit
|
|
184
188
|
// sizing — without it, a parent with `flex-basis: auto` re-measures
|
|
185
189
|
// this element's content each time fit() grows it, which re-fires the
|
|
186
190
|
// ResizeObserver below and runs away (confirmed: unbounded growth).
|
|
187
|
-
"h-full w-full min-h-0 min-w-0 overflow-hidden
|
|
191
|
+
"h-full w-full min-h-0 min-w-0 overflow-hidden border border-border p-2 [contain:inline-size]",
|
|
188
192
|
className
|
|
189
193
|
)}
|
|
190
194
|
style={{ backgroundColor: terminalTheme.background }}
|