diff --git a/packages/widget/src/components/common/dropdown/dropdown.ts b/packages/widget/src/components/common/dropdown/dropdown.ts index 88ce21f9..aed72fdd 100644 --- a/packages/widget/src/components/common/dropdown/dropdown.ts +++ b/packages/widget/src/components/common/dropdown/dropdown.ts @@ -135,7 +135,7 @@ export class Dropdown extends BaseComponent { this.selectedOption, () => html`${this.selectedOption!.icon || networkIconsMap.default} - + ${capitalize(this.selectedOption!.name)} `, () => @@ -156,7 +156,7 @@ export class Dropdown extends BaseComponent { () => customOptionHtml, () => html` ${icon || ''} - ${capitalize(name)} + ${capitalize(name)} ` ); } diff --git a/packages/widget/src/components/common/dropdown/styles.ts b/packages/widget/src/components/common/dropdown/styles.ts index f871534e..5078c173 100644 --- a/packages/widget/src/components/common/dropdown/styles.ts +++ b/packages/widget/src/components/common/dropdown/styles.ts @@ -15,6 +15,7 @@ export const styles = css` } .dropdownTrigger { + white-space: nowrap; height: 100%; width: 100%; display: flex; @@ -95,6 +96,8 @@ export const styles = css` .optionName { margin-left: 0.5rem; + overflow: hidden; + text-overflow: ellipsis; } .dropdownLabel {