Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/Lookup/styled/chip.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ const StyledChip = attachThemeAttrs(styled(Chip))`
flex: 1 1 auto;
margin: 2px;
background-color: ${props => props.palette.background.main};
width: 0px;

& > span {
min-width: 0px;
flex-basis: 99%;
}
Comment on lines +11 to +14
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is because changing the value directly in the Structured component... a lot of components are affected .. so better to change it here to only affect the Chip associated with the lookup value

`;

export default StyledChip;
3 changes: 3 additions & 0 deletions src/components/Lookup/styled/chipContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import styled from 'styled-components';
const StyledChipContainer = styled.span`
display: flex;
align-items: center;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
`;

export default StyledChipContainer;