Skip to content

Commit

Permalink
Merge pull request #11818 from cfhull/argsTable-text-wrapping
Browse files Browse the repository at this point in the history
ArgsTable: Fix styles to allow long text to wrap
  • Loading branch information
shilman authored Aug 17, 2020
2 parents ed4198f + a11b2a2 commit f9fa895
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/components/src/blocks/ArgsTable/ArgValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ const Summary = styled.div<{ isExpanded?: boolean }>(({ isExpanded }) => ({
flexWrap: 'wrap',
alignItems: 'flex-start',
marginBottom: '-4px',
minWidth: 100,
}));

const Text = styled.span<{}>(codeCommon, ({ theme }) => ({
flex: 0,
flex: '0 0 auto',
fontFamily: theme.typography.fonts.mono,
fontSize: theme.typography.size.s1,
wordBreak: 'break-word',
Expand All @@ -43,6 +44,8 @@ const Text = styled.span<{}>(codeCommon, ({ theme }) => ({
paddingTop: '2px',
paddingBottom: '2px',
lineHeight: '13px',
whiteSpace: 'normal',
maxWidth: '100%',
}));

const ExpandButton = styled.button<{}>(({ theme }) => ({
Expand Down

0 comments on commit f9fa895

Please sign in to comment.