Skip to content

Commit 653e0f8

Browse files
committed
fix: prevent long unbreakable words in alert messages from overflowing container
1 parent b025bff commit 653e0f8

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

client/src/components/PromptsTab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ const PromptsTab = ({
131131
<Alert variant="destructive">
132132
<AlertCircle className="h-4 w-4" />
133133
<AlertTitle>Error</AlertTitle>
134-
<AlertDescription>{error}</AlertDescription>
134+
<AlertDescription className="break-all">
135+
{error}
136+
</AlertDescription>
135137
</Alert>
136138
) : selectedPrompt ? (
137139
<div className="space-y-4">

client/src/components/ResourcesTab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ const ResourcesTab = ({
225225
<Alert variant="destructive">
226226
<AlertCircle className="h-4 w-4" />
227227
<AlertTitle>Error</AlertTitle>
228-
<AlertDescription>{error}</AlertDescription>
228+
<AlertDescription className="break-all">
229+
{error}
230+
</AlertDescription>
229231
</Alert>
230232
) : selectedResource ? (
231233
<JsonView

client/src/components/ToolsTab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ const ToolsTab = ({
137137
<Alert variant="destructive">
138138
<AlertCircle className="h-4 w-4" />
139139
<AlertTitle>Error</AlertTitle>
140-
<AlertDescription>{error}</AlertDescription>
140+
<AlertDescription className="break-all">
141+
{error}
142+
</AlertDescription>
141143
</Alert>
142144
)}
143145
<p className="text-sm text-gray-600 dark:text-gray-400">

0 commit comments

Comments
 (0)