Skip to content

Commit

Permalink
Text wrap input field error (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura authored Aug 7, 2024
1 parent bcc6b17 commit 27751cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/starknet-react-next/src/app/token/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use client'
"use client";

import {
useAccount,
Expand Down
7 changes: 6 additions & 1 deletion packages/ui/src/components/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ export const Field = forwardRef(
{error && (
<HStack marginY={3}>
<AlertIcon fontSize="xl" color="text.error" />
<Text color="text.error" fontSize="sm">
<Text
color="text.error"
fontSize="sm"
w="full"
overflowWrap="anywhere"
>
{error}
</Text>
</HStack>
Expand Down

0 comments on commit 27751cc

Please sign in to comment.