diff --git a/packages/@react-spectrum/ai/src/ResponseStatus.tsx b/packages/@react-spectrum/ai/src/ResponseStatus.tsx index 5479c547983..bad30dbcf0e 100644 --- a/packages/@react-spectrum/ai/src/ResponseStatus.tsx +++ b/packages/@react-spectrum/ai/src/ResponseStatus.tsx @@ -13,6 +13,7 @@ import {AriaLabelingProps, DOMProps, DOMRef, GlobalDOMAttributes} from '@react-types/shared'; import { baseColor, + css, focusRing, iconStyle, space, @@ -158,12 +159,11 @@ const buttonStyles = style({ } }, display: 'flex', - flexGrow: 1, + flexGrow: 0, alignItems: 'center', paddingX: 'calc(self(minHeight) * 3/8 - 1px)', gap: 'calc(self(minHeight) * 3/8 - 1px)', minHeight: 32, - width: 'full', backgroundColor: 'transparent', transition: 'default', borderWidth: 0, @@ -282,7 +282,7 @@ export interface ResponseStatusPanelProps styles?: StyleString; } -const panelStyles = style({ +const panelStyle = { font: 'body', height: '--disclosure-panel-height', overflow: 'clip', @@ -290,7 +290,7 @@ const panelStyles = style({ default: '[height]', '@media (prefers-reduced-motion: reduce)': 'none' } -}); +} as const; const panelInner = style({ paddingTop: 8, @@ -317,7 +317,10 @@ export const ResponseStatusPanel = forwardRef(function ResponseStatusPanel( }, [registerPanel]); return ( - +
{props.children}
); @@ -386,7 +389,9 @@ function DetailTrigger(props: DetailTriggerProps) { return (