Skip to content

Commit

Permalink
UI: Fix Callout component overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Oct 16, 2023
1 parent c82c56e commit dc4f10d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/four-windows-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'next-docs-ui': patch
---

Fix Callout component overflow
2 changes: 1 addition & 1 deletion packages/next-docs-ui/src/components/callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const Callout = forwardRef<HTMLDivElement, CalloutProps>(
<AlertOctagonIcon className="nd-text-card nd-fill-red-500 nd-w-5 nd-h-5" />
)
}[type]}
<div className="nd-flex-1">
<div className="nd-flex-1 nd-w-0">
{title && (
<div className="nd-text-card-foreground nd-font-medium nd-mb-0.5">
{title}
Expand Down

0 comments on commit dc4f10d

Please sign in to comment.