Skip to content

Commit e2b1059

Browse files
committed
fix: add text wrapping to element with long text children
1 parent cebb287 commit e2b1059

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/components/note/Note.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const Note = ({ note }: NoteProps) => {
4040
<span>ノートの作成日時: {dateString}</span>
4141
</Group>
4242
<Stack gap="xs">
43-
<Text>{note.summary}</Text>
43+
<Text className="break-words">{note.summary}</Text>
4444
<NoteStatus status={note.currentStatus} />
4545
<div className="grid grid-cols-1 gap-2 md:grid-cols-[auto_1fr] md:gap-4">
4646
<Badge

app/components/post/Post.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const Post = ({ post }: PostProps) => {
4040
/>
4141
<Text fw="bolder">{post.xUser.name}</Text>
4242
</Group>
43-
<Text>{post.text}</Text>
43+
<Text className="break-words">{post.text}</Text>
4444
{post.links?.map((link, index) => (
4545
<a href={link.url} key={`${post.postId}link_${index}`}>
4646
<Text c="blue">{link.url}</Text>

0 commit comments

Comments
 (0)