Skip to content

Commit

Permalink
Move width adjustments to PickerNetwork component
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Oct 13, 2023
1 parent 8fe354f commit 24f677a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

height: var(--picker-network-height);

&--full {
max-width: none;

.mm-text--ellipsis {
flex-grow: 1;
text-align: start;
}
}

&:active {
background-color: var(--color-background-default-hover);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
IconColor,
BackgroundColor,
Display,
BlockSize,
} from '../../../helpers/constants/design-system';
import {
AvatarNetwork,
Expand Down Expand Up @@ -38,7 +39,9 @@ export const PickerNetwork: PickerNetworkComponent = React.forwardRef(
) => {
return (
<Box
className={classnames('mm-picker-network', className)}
className={classnames('mm-picker-network', className, {
'mm-picker-network--full': props.width === BlockSize.Full,
})}
ref={ref}
as="button"
backgroundColor={BackgroundColor.backgroundAlternative}
Expand Down
12 changes: 0 additions & 12 deletions ui/pages/home/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,6 @@
padding: 0 16px;
}

&__main-view .tabs__content {
.mm-picker-network {
max-width: none;
text-align:  start;

.mm-text--ellipsis {
flex-grow: 1;
text-align: start;
}
}
}

&__main-view &__tab {
@include H6;

Expand Down

0 comments on commit 24f677a

Please sign in to comment.