Skip to content

Commit

Permalink
Updating NetworkListMenu component to show as many networks in the ne…
Browse files Browse the repository at this point in the history
…twork list as screen realestate allows (#20801)
  • Loading branch information
georgewrmarshall authored Sep 11, 2023
1 parent ac810ce commit e44887c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion ui/components/multichain/network-list-menu/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.multichain-network-list-menu-content-wrapper {
&__dialog {
max-height: 100%;
}
}

.multichain-network-list-menu {
max-height: 200px;
max-height: 100%;
overflow: auto;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import ToggleButton from '../../ui/toggle-button';
import {
BlockSize,
Display,
FlexDirection,
JustifyContent,
Size,
TextColor,
Expand Down Expand Up @@ -177,7 +178,12 @@ export const NetworkListMenu = ({ onClose }) => {
<ModalOverlay />
<ModalContent
className="multichain-network-list-menu-content-wrapper"
modalDialogProps={{ padding: 0 }}
modalDialogProps={{
className: 'multichain-network-list-menu-content-wrapper__dialog',
display: Display.Flex,
flexDirection: FlexDirection.Column,
padding: 0,
}}
>
<ModalHeader
paddingTop={4}
Expand Down

0 comments on commit e44887c

Please sign in to comment.