Skip to content

Commit

Permalink
fix truncating spacing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkrumbach07 committed Nov 13, 2023
1 parent b13896b commit f3a7db9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions frontend/src/components/SimpleDropdownSelect.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.full-width {
width: 100%;
}

.truncate-no-min-width {
--pf-c-truncate--MinWidth: 0;
--pf-c-truncate__start--MinWidth: 0;
}
2 changes: 1 addition & 1 deletion frontend/src/components/SimpleDropdownSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const SimpleDropdownSelect: React.FC<SimpleDropdownProps> = ({
className={isFullWidth ? 'full-width' : undefined}
onToggle={() => setOpen(!open)}
>
<Truncate content={selectedLabel.toString()} style={{ paddingLeft: 0 }} />
<Truncate content={selectedLabel.toString()} className="truncate-no-min-width" />
</DropdownToggle>
}
dropdownItems={options
Expand Down

0 comments on commit f3a7db9

Please sign in to comment.