diff --git a/src/app/common/elements/dropdown.tsx b/src/app/common/elements/dropdown.tsx index 9adbad31..306fe858 100644 --- a/src/app/common/elements/dropdown.tsx +++ b/src/app/common/elements/dropdown.tsx @@ -258,7 +258,11 @@ class Dropdown extends React.Component { document.getElementById("app")! ) : null; - + let selectedOptionLabelStyle = {}; + const wrapperClientWidth = this.wrapperRef.current?.clientWidth; + if ((wrapperClientWidth ?? 0) > 0) { + selectedOptionLabelStyle["width"] = Math.max(wrapperClientWidth - 55, 0); + } return (
{
{selectedOptionLabel}