Skip to content

Commit faa2510

Browse files
authored
fix: resizes the error message before close btn (#1992)
This changes the error overlay so it resizes the error message before the close button in narrow blocks.
1 parent 57ff3c5 commit faa2510

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/app/view/preview/preview.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,14 +1194,14 @@ const ErrorOverlay = memo(({ errorMsg, resetOverlay }: { errorMsg: ErrorMsg; res
11941194
<div className="absolute top-[0] left-1.5 right-1.5 z-[var(--zindex-block-mask-inner)] overflow-hidden bg-[var(--conn-status-overlay-bg-color)] backdrop-blur-[50px] rounded-md shadow-lg">
11951195
<div className="flex flex-row justify-between p-2.5 pl-3 font-[var(--base-font)] text-[var(--secondary-text-color)]">
11961196
<div
1197-
className={clsx("flex flex-row items-center gap-3 grow min-w-0", {
1197+
className={clsx("flex flex-row items-center gap-3 grow min-w-0 shrink", {
11981198
"items-start": true,
11991199
})}
12001200
>
12011201
<i className={iconClass}></i>
12021202

1203-
<div className="flex flex-col items-start gap-1 grow w-full">
1204-
<div className="max-w-full text-xs font-semibold leading-4 tracking-[0.11px] text-white">
1203+
<div className="flex flex-col items-start gap-1 grow w-full shrink min-w-0">
1204+
<div className="max-w-full text-xs font-semibold leading-4 tracking-[0.11px] text-white overflow-hidden">
12051205
{errorMsg.status}
12061206
</div>
12071207

0 commit comments

Comments
 (0)