Skip to content

Commit

Permalink
fix: styling, fix: warningbox not showing explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
L03TJ3 committed Nov 26, 2024
1 parent 717d136 commit 70c2bc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/app/src/components/DonateComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ const DonateComponent = ({ collective }: DonateComponentProps) => {
},
xl: {
maxWidth: '100%',
paddingLeft: 4,
paddingRight: 4,
},
});

Expand Down Expand Up @@ -522,7 +524,7 @@ const DonateComponent = ({ collective }: DonateComponentProps) => {
)}
</VStack>
{/* Amount and token */}
<VStack space={2} maxW="320" mb={8}>
<VStack space={2} maxW="320" mb={8} zIndex={1}>
<VStack space={2} zIndex={1}>
<Text variant="bold" fontSize="lg">
How much?
Expand Down Expand Up @@ -616,7 +618,7 @@ const DonateComponent = ({ collective }: DonateComponentProps) => {
return whichWarning ? (
<WarningBox
key={key}
explanationProps={priceImpact}
explanationProps={key === 'priceImpact' ? { priceImpact: priceImpact } : { type: key }}
content={warningProps[key as keyof typeof warningProps]}
/>
) : null;
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/NumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const NumberInput = ({
padding={2}
paddingRight={4}
space={4}
maxWidth={290}>
maxWidth={type === 'duration' ? 290 : '100%'}>
{type === 'token' ? <Dropdown value={dropdownValue} onSelect={onSelect} options={options} /> : <Box />}
<HStack alignItems="center" flexGrow={1} justifyContent="flex-end">
<HStack justifyContent="flex-end">
Expand Down

0 comments on commit 70c2bc8

Please sign in to comment.