Skip to content

Commit

Permalink
fix: imporved toast clickbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Feb 27, 2024
1 parent 649b7fb commit 91d3558
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ui/src/panels/ToastContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useToastController } from '@tamagui/toast'

import { Paragraph, XStack } from '../base'
import { Paragraph, Stack, XStack } from '../base'
import { X } from '../content'

interface ToastContainerProps {
Expand All @@ -26,7 +26,9 @@ export const ToastContainer = ({ title, safeAreaMargin = false }: ToastContainer
ai="center"
>
<Paragraph w="90%">{title}</Paragraph>
<X size="$1" onPress={() => toast.hide()} color="$grey-600" />
<Stack jc="center" h="100%" onPress={() => toast.hide()}>
<X size="$1" color="$grey-600" />
</Stack>
</XStack>
)
}

0 comments on commit 91d3558

Please sign in to comment.