Skip to content

Commit c9c33b8

Browse files
committed
fix(site): center warning boxes on task error pages
Change min-h-80 to h-full for error containers in TaskPage to properly center warning boxes vertically. This fixes the layout issue where warning boxes were not centered when viewing error states such as accessing another user's task (404 error). The fix applies to: - Error loading task state - Task build failed state - Workspace not running state Fixes #20369
1 parent 038e23b commit c9c33b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎site/src/pages/TaskPage/TaskPage.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const TaskPage = () => {
7777
<TaskPageLayout>
7878
<title>{pageTitle("Error loading task")}</title>
7979

80-
<div className="w-full min-h-80 flex items-center justify-center">
80+
<div className="w-full h-full flex items-center justify-center">
8181
<div className="flex flex-col items-center">
8282
<h3 className="m-0 font-medium text-content-primary text-base">
8383
{getErrorMessage(error, "Failed to load task")}
@@ -119,7 +119,7 @@ const TaskPage = () => {
119119
content = <TaskBuildingWorkspace task={task} />;
120120
} else if (task.workspace.latest_build.status === "failed") {
121121
content = (
122-
<div className="w-full min-h-80 flex items-center justify-center">
122+
<div className="w-full h-full flex items-center justify-center">
123123
<div className="flex flex-col items-center">
124124
<h3 className="m-0 font-medium text-content-primary text-base">
125125
Task build failed
@@ -218,7 +218,7 @@ const WorkspaceNotRunning: FC<WorkspaceNotRunningProps> = ({ task }) => {
218218

219219
return (
220220
<Margins>
221-
<div className="w-full min-h-80 flex items-center justify-center">
221+
<div className="w-full h-full flex items-center justify-center">
222222
<div className="flex flex-col items-center">
223223
<h3 className="m-0 font-medium text-content-primary text-base">
224224
Workspace is not running

0 commit comments

Comments
 (0)