Skip to content

Commit

Permalink
Merge branch 'matthewbbrandt-fix/tree-icons'
Browse files Browse the repository at this point in the history
  • Loading branch information
rwieruch committed Apr 26, 2023
2 parents dbd5fe3 + 3f43d55 commit e49f372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/common/components/Button/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export default ({ margin }: { margin?: string }) => css`
&.suffix {
margin-left: ${margin || 0};
}
&.no-shrink {
flex-shrink: 0;
}
div {
text-align: left;
Expand Down
2 changes: 1 addition & 1 deletion src/tree/CellTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const CellTree = <T extends TableNode>({
<Cell {...passThrough}>
<div css={style}>
<Button
className="prefix narrow"
className="prefix narrow no-shrink"
margin={icon ? mergedTreeIconOptions.margin : mergedTreeIconOptions.noIconMargin}
onClick={handleClick}
>
Expand Down

0 comments on commit e49f372

Please sign in to comment.