From a3d195cbf94421a1ae151aa2a44952e961afee3f Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Tue, 30 May 2023 18:30:34 +0000 Subject: [PATCH 1/4] Fix buttons --- .../components/UserDropdown/UsersDropdown.tsx | 11 ++++++- .../WorkspaceActions/WorkspaceActions.tsx | 5 +-- site/src/theme/theme.ts | 32 +++++++++++++------ 3 files changed, 33 insertions(+), 15 deletions(-) diff --git a/site/src/components/UserDropdown/UsersDropdown.tsx b/site/src/components/UserDropdown/UsersDropdown.tsx index 32582b6fd08b2..1e77e5ad6bf3d 100644 --- a/site/src/components/UserDropdown/UsersDropdown.tsx +++ b/site/src/components/UserDropdown/UsersDropdown.tsx @@ -9,6 +9,7 @@ import { BorderedMenu } from "../BorderedMenu/BorderedMenu" import { CloseDropdown, OpenDropdown } from "../DropdownArrows/DropdownArrows" import { UserAvatar } from "../UserAvatar/UserAvatar" import { UserDropdownContent } from "../UserDropdownContent/UserDropdownContent" +import { BUTTON_SM_HEIGHT } from "theme/theme" export interface UserDropdownProps { user: TypesGen.User @@ -42,7 +43,15 @@ export const UserDropdown: FC> = ({ >
- + {anchorEl ? ( diff --git a/site/src/components/WorkspaceActions/WorkspaceActions.tsx b/site/src/components/WorkspaceActions/WorkspaceActions.tsx index a842426871a23..194b3a6d94314 100644 --- a/site/src/components/WorkspaceActions/WorkspaceActions.tsx +++ b/site/src/components/WorkspaceActions/WorkspaceActions.tsx @@ -102,10 +102,7 @@ export const WorkspaceActions: FC = ({ ? buttonMapping[ButtonTypesEnum.updating] : buttonMapping[ButtonTypesEnum.update])} {isRestarting && buttonMapping[ButtonTypesEnum.restarting]} - {!isRestarting && - actionsByStatus.map((action) => ( - {buttonMapping[action]} - ))} + {!isRestarting && actionsByStatus.map((action) => buttonMapping[action])} {canCancel && }
Date: Tue, 30 May 2023 18:32:23 +0000 Subject: [PATCH 2/4] Rollback padding --- site/src/theme/theme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/theme/theme.ts b/site/src/theme/theme.ts index 42686361617d0..8232d1a6ff94d 100644 --- a/site/src/theme/theme.ts +++ b/site/src/theme/theme.ts @@ -128,7 +128,7 @@ dark = createTheme(dark, { letterSpacing: "normal", fontWeight: 500, height: BUTTON_MD_HEIGHT, - padding: theme.spacing(1, 1.5), + padding: theme.spacing(1, 2), borderRadius: "6px", fontSize: 14, From 23c721ee6a14198e36c56c6193973d6278f2aef6 Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Tue, 30 May 2023 18:37:05 +0000 Subject: [PATCH 3/4] Fix padding --- site/src/theme/theme.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/site/src/theme/theme.ts b/site/src/theme/theme.ts index 8232d1a6ff94d..48adafe05408d 100644 --- a/site/src/theme/theme.ts +++ b/site/src/theme/theme.ts @@ -140,7 +140,6 @@ dark = createTheme(dark, { "& .MuiLoadingButton-loadingIndicator": { width: 14, height: 14, - left: 10, }, "& .MuiLoadingButton-loadingIndicator .MuiCircularProgress-root": { From dfde0b939bd89d52cec7f80e907cdf1803e97c70 Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Tue, 30 May 2023 18:43:45 +0000 Subject: [PATCH 4/4] Fix proxy skeleton --- site/src/components/Navbar/NavbarView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/src/components/Navbar/NavbarView.tsx b/site/src/components/Navbar/NavbarView.tsx index 176a9ae446aad..8167590fbac05 100644 --- a/site/src/components/Navbar/NavbarView.tsx +++ b/site/src/components/Navbar/NavbarView.tsx @@ -23,6 +23,7 @@ import Divider from "@mui/material/Divider" import HelpOutline from "@mui/icons-material/HelpOutline" import Tooltip from "@mui/material/Tooltip" import Skeleton from "@mui/material/Skeleton" +import { BUTTON_SM_HEIGHT } from "theme/theme" export const USERS_LINK = `/users?filter=${encodeURIComponent("status:active")}` @@ -195,7 +196,7 @@ const ProxyMenu: FC<{ proxyContextValue: ProxyContextValue }> = ({ return ( )