Skip to content

Commit

Permalink
Merge branch 'main' into fix/amount-to-receive
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda authored May 28, 2024
2 parents 5437f6d + 1215dcc commit ae58317
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/widget/src/components/common/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class Dropdown extends BaseComponent {
this.selectedOption,
() =>
html`${this.selectedOption!.icon || networkIconsMap.default}
<span part="optionName" class="optionName">
<span part="optionName" class="optionName optionNameEllipsis">
${capitalize(this.selectedOption!.name)}
</span>`,
() =>
Expand All @@ -156,7 +156,7 @@ export class Dropdown extends BaseComponent {
() => customOptionHtml,
() => html`
${icon || ''}
<span class="optionName">${capitalize(name)}</span>
<span class="optionName optionNameEllipsis">${capitalize(name)}</span>
`
);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/widget/src/components/common/dropdown/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const styles = css`
}
.dropdownTrigger {
white-space: nowrap;
height: 100%;
width: 100%;
display: flex;
Expand Down Expand Up @@ -95,6 +96,8 @@ export const styles = css`
.optionName {
margin-left: 0.5rem;
overflow: hidden;
text-overflow: ellipsis;
}
.dropdownLabel {
Expand Down

0 comments on commit ae58317

Please sign in to comment.