Skip to content

Commit

Permalink
feat: add menu class names to handle and improve select input dropdow…
Browse files Browse the repository at this point in the history
…n menu width sizes (#2172)
  • Loading branch information
domw30 authored Aug 14, 2024
1 parent 11fbcb3 commit 3ae94b0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/edit-profile/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
&__zid-select-menu {
max-height: 220px;
overflow-y: auto;
overflow-x: hidden;

width: 100%;
width: 222px;
}

&__zid-menu-item-option {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export class GroupTypeMenu extends React.Component<Properties, State> {
label=''
value={selectedGroupType}
itemSize='compact'
menuClassName='group-type-menu__dropdown'
/>
</div>
<div {...cn('select-input-label-container')} onClick={this.open}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@
&__icon-button {
@include glass-text-secondary-color;
}

&__dropdown {
width: 222px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export class SettingsPanel extends React.Component<Properties> {
placeholder='Select Background'
value={selectedBackgroundLabel}
itemSize='compact'
menuClassName='settings-panel__dropdown'
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,8 @@
left: 22px;
color: theme.$color-secondary-11;
}

&__dropdown {
width: 222px;
}
}

0 comments on commit 3ae94b0

Please sign in to comment.