Преглед изворни кода

Fix duplicated label layout if id is too long

If a label is duplicated in the dropdown list, the ID of the item is
also shown. This fixes a layout issue where the ID is too long.
Sergiu Miclea пре 7 година
родитељ
комит
835d70a537
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/components/molecules/Dropdown/Dropdown.jsx

+ 1 - 0
src/components/molecules/Dropdown/Dropdown.jsx

@@ -144,6 +144,7 @@ const Separator = styled.div`
 `
 `
 const Labels = styled.div`
 const Labels = styled.div`
   word-break: break-word;
   word-break: break-word;
+  max-width: 100%;
 `
 `
 
 
 export const updateTipStyle = (listItemsRef: HTMLElement, tipRef: HTMLElement, firstItemRef: HTMLElement) => {
 export const updateTipStyle = (listItemsRef: HTMLElement, tipRef: HTMLElement, firstItemRef: HTMLElement) => {