Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix: avoid jumping heights via text-overflow: ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed May 4, 2018
1 parent b4925b0 commit ebc9a43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lsg/patterns/element/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,12 @@ const StyledIcon = styled(Icon)`

const LabelContent = styled.div`
box-sizing: border-box;
width: 100%;
margin-left: ${getSpace(Size.XXL) - 3}px;
overflow: hidden;
padding: ${getSpace(Size.XS)}px ${getSpace(Size.L)}px ${getSpace(Size.XS)}px 3px;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
`;

const StyledSeamlessInput = styled.input`
Expand Down

0 comments on commit ebc9a43

Please sign in to comment.