diff --git a/src/chrome/ErrorBar.tsx b/src/chrome/ErrorBar.tsx index d867ab9a2..69c79799c 100644 --- a/src/chrome/ErrorBar.tsx +++ b/src/chrome/ErrorBar.tsx @@ -76,14 +76,8 @@ function ErrorTile({ const [collapsed, setCollapsed] = useState(true); return ( - - {error.message} - {error.occurrences! > 1 && ( - - {error.occurrences} - - )} - + + {(error.details || error.error) && ( + + {error.occurrences! > 1 && ( + + {error.occurrences} + + )} + + {error.message} {!collapsed && ( @@ -153,6 +161,12 @@ const ErrorRow = styled('div')({ lineHeight: '28px', }); +const ButtonSection = styled(FlexColumn)({ + marginLeft: '8px', + flexShrink: 0, + flexGrow: 0, +}); + const ErrorCounter = styled(FlexColumn)({ backgroundColor: colors.cherryDark3, color: colors.cherry, @@ -162,4 +176,7 @@ const ErrorCounter = styled(FlexColumn)({ marginTop: 2, lineHeight: '24px', textAlign: 'center', + flexShrink: 0, + flexGrow: 0, + marginLeft: '8px', });