fix: retry modal horizontal overflow (#991)

Break content onto the next line horizontal space runs out.
This commit is contained in:
Solomon
2025-10-10 14:46:34 +01:00
committed by GitHub
parent 4aa9506d8c
commit 3d2f062c2f

View File

@@ -202,7 +202,7 @@ export const RestoreLogsDialog = NiceModal.create<RestoreLogsDialogProps>(
<p className="mt-2 text-xs text-muted-foreground">
Your worktree will be restored to this commit.
</p>
<div className="mt-1 flex items-center gap-2 min-w-0">
<div className="mt-1 flex flex-wrap items-center gap-2 min-w-0">
<GitCommit className="h-3.5 w-3.5 text-muted-foreground" />
{short && (
<span className="font-mono text-xs px-2 py-0.5 rounded bg-muted">
@@ -342,7 +342,7 @@ export const RestoreLogsDialog = NiceModal.create<RestoreLogsDialogProps>(
<p className="mt-2 text-xs text-muted-foreground">
Your worktree will be restored to this commit.
</p>
<div className="mt-1 flex items-center gap-2 min-w-0">
<div className="mt-1 flex flex-wrap items-center gap-2 min-w-0">
<GitCommit className="h-3.5 w-3.5 text-muted-foreground" />
<span className="font-mono text-xs px-2 py-0.5 rounded bg-muted">
{short}