fix: add line breaks in quota/capacity msgs (#12603)

This commit is contained in:
Adam Weidman
2025-11-05 16:12:06 -05:00
committed by GitHub
parent fa93b56243
commit c951f9fdcd
4 changed files with 62 additions and 26 deletions

View File

@@ -22,10 +22,12 @@ export const InfoMessage: React.FC<InfoMessageProps> = ({ text }) => {
<Box width={prefixWidth}>
<Text color={theme.status.warning}>{prefix}</Text>
</Box>
<Box flexGrow={1}>
<Text wrap="wrap">
<RenderInline text={text} defaultColor={theme.status.warning} />
</Text>
<Box flexGrow={1} flexDirection="column">
{text.split('\n').map((line, index) => (
<Text wrap="wrap" key={index}>
<RenderInline text={line} defaultColor={theme.status.warning} />
</Text>
))}
</Box>
</Box>
);