Fix for a Warning Panel. For certain error messages the content of it doesn't fit inside the div container.

Signed-off-by: Bogdan Nechyporenko <bnechyporenko@bol.com>
This commit is contained in:
Bogdan Nechyporenko
2023-10-04 16:31:16 +02:00
parent 4219ca17e4
commit 8a15360bb4
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Fixed overflowing messages in `WarningPanel`.
@@ -69,6 +69,9 @@ export type WarningPanelClassKey =
const useStyles = makeStyles<BackstageTheme>(
theme => ({
content: {
lineBreak: 'anywhere',
},
panel: {
backgroundColor: ({ severity }: WarningProps) =>
getWarningBackgroundColor(
@@ -168,6 +171,7 @@ export function WarningPanel(props: WarningProps) {
>
<AccordionSummary
expandIcon={<ExpandMoreIconStyled severity={severity} />}
classes={{ content: classes.content }}
className={classes.summary}
>
<ErrorOutlineStyled severity={severity} />