Skip to content

Commit

Permalink
fix: dropdown height for width screen & FAB round border (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
loatheb authored Jun 13, 2022
1 parent 808b3f5 commit 6c5686a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions packages/components/src/Layout/BottomBarModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ const BottomBarModal = forwardRef<TBottomBarRefAttr, TBottomBarModalProps>(
(props, ref) => {
const modalizeRef = useRef(null);
const combinedRef = useCombinedRefs(ref, modalizeRef);
const [inactiveFontColor] = useThemeValue(['text-default']);
const [inactiveFontColor, defaultBgColor] = useThemeValue([
'text-default',
'background-default',
]);
return (
<Modalize
adjustToContentHeight
Expand All @@ -67,8 +70,11 @@ const BottomBarModal = forwardRef<TBottomBarRefAttr, TBottomBarModalProps>(
duration: 150,
},
}}
modalStyle={{
backgroundColor: defaultBgColor,
}}
>
<Box mb={props.tabBarHeight} p="16px" bgColor="background-default">
<Box mb={props.tabBarHeight} p="16px">
{props.foldableList.map((foldable, index) => (
<Pressable
key={index}
Expand Down
5 changes: 4 additions & 1 deletion packages/kit/src/components/Header/ChainSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ const ChainSelector: FC = () => {
setPositionOnlyMounted
positionTranslateY={-4}
dropdownPosition="top-left"
dropdownProps={{ minW: '240px', height: '320px' }}
dropdownProps={{
minW: '240px',
height: isVerticalLayout ? '70%' : '320px',
}}
value={activeNetwork ? activeNetwork?.id : undefined}
onChange={handleActiveChainChange}
title={intl.formatMessage({ id: 'network__networks' })}
Expand Down

0 comments on commit 6c5686a

Please sign in to comment.