diff --git a/site/src/components/Resources/Resources.tsx b/site/src/components/Resources/Resources.tsx index f78b51696d22d..d959d53a501a9 100644 --- a/site/src/components/Resources/Resources.tsx +++ b/site/src/components/Resources/Resources.tsx @@ -41,8 +41,8 @@ export const Resources: FC = ({ resources, getResourcesError, wo {Language.resourceLabel} {Language.agentLabel} - {Language.statusLabel} {Language.accessLabel} + {Language.statusLabel} @@ -82,11 +82,6 @@ export const Resources: FC = ({ resources, getResourcesError, wo {agent.name} {agent.operating_system} - - - {getDisplayAgentStatus(theme, agent).status} - - {agent.status === "connected" && ( = ({ resources, getResourcesError, wo /> )} + + + {getDisplayAgentStatus(theme, agent).status} + + ) }) diff --git a/site/src/components/Workspace/Workspace.tsx b/site/src/components/Workspace/Workspace.tsx index 189090ab99256..54ee44fa77a3e 100644 --- a/site/src/components/Workspace/Workspace.tsx +++ b/site/src/components/Workspace/Workspace.tsx @@ -42,43 +42,43 @@ export const Workspace: FC = ({ return (
-
-
- - {workspace.name} - + + +
+
+ + {workspace.name} + - - {workspace.owner_name} - -
+ + {workspace.owner_name} + +
+ +
+ -
- -
-
+ + - - + + - - - - + @@ -92,15 +92,19 @@ export const useStyles = makeStyles((theme) => { display: "flex", flexDirection: "column", }, + firstColumnSpacer: { + flex: 2, + }, + secondColumnSpacer: { + flex: "0 0 300px", + }, header: { paddingTop: theme.spacing(5), paddingBottom: theme.spacing(5), fontFamily: MONOSPACE_FONT_FAMILY, display: "flex", alignItems: "center", - }, - headerActions: { - marginLeft: "auto", + justifyContent: "space-between", }, title: { fontWeight: 600, diff --git a/site/src/components/WorkspaceActions/WorkspaceActions.tsx b/site/src/components/WorkspaceActions/WorkspaceActions.tsx index 1c04858383b12..70e75728f7f46 100644 --- a/site/src/components/WorkspaceActions/WorkspaceActions.tsx +++ b/site/src/components/WorkspaceActions/WorkspaceActions.tsx @@ -12,14 +12,14 @@ import { Stack } from "../Stack/Stack" import { WorkspaceActionButton } from "../WorkspaceActionButton/WorkspaceActionButton" export const Language = { - stop: "Stop workspace", - stopping: "Stopping workspace", - start: "Start workspace", - starting: "Starting workspace", - delete: "Delete workspace", - deleting: "Deleting workspace", + stop: "Stop", + stopping: "Stopping", + start: "Start", + starting: "Starting", + delete: "Delete", + deleting: "Deleting", cancel: "Cancel action", - update: "Update workspace", + update: "Update", } /** @@ -92,7 +92,7 @@ export const WorkspaceActions: FC = ({ )} {canCancelJobs(workspaceStatus) && ( } onClick={handleCancel} label={Language.cancel} @@ -111,6 +111,9 @@ const useStyles = makeStyles((theme) => ({ actionButton: { // Set fixed width for the action buttons so they will not change the size // during the transitions + width: theme.spacing(16), + }, + cancelActionButton: { width: theme.spacing(27), }, })) diff --git a/site/src/components/WorkspaceStats/WorkspaceStats.tsx b/site/src/components/WorkspaceStats/WorkspaceStats.tsx index 3e9242339b937..2858639da2331 100644 --- a/site/src/components/WorkspaceStats/WorkspaceStats.tsx +++ b/site/src/components/WorkspaceStats/WorkspaceStats.tsx @@ -39,15 +39,6 @@ export const WorkspaceStats: FC = ({ workspace }) => {
-
- {Language.statusLabel} - - - {status.status} - - -
-
{Language.versionLabel} @@ -65,6 +56,15 @@ export const WorkspaceStats: FC = ({ workspace }) => { {dayjs().to(dayjs(workspace.latest_build.created_at))}
+
+
+ {Language.statusLabel} + + + {status.status} + + +
) } @@ -83,7 +83,7 @@ const useStyles = makeStyles((theme) => ({ }, statItem: { - minWidth: theme.spacing(20), + minWidth: "20%", padding: theme.spacing(2), paddingTop: theme.spacing(1.75), },