From 4604f191e933d2b419ca85b2834b1a0299f301b9 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Tue, 1 Apr 2025 21:29:36 -0300 Subject: [PATCH] refactor: increase workspace and template avatar size (#17200) **Before** Screenshot 2025-04-01 at 14 46 10 Screenshot 2025-04-01 at 14 45 55 **After** Screenshot 2025-04-01 at 14 46 18 Screenshot 2025-04-01 at 14 46 02 --- site/src/components/Avatar/AvatarData.tsx | 26 +++++-------------- .../components/Avatar/AvatarDataSkeleton.tsx | 10 +++---- .../pages/TemplatesPage/TemplatesPageView.tsx | 1 + .../pages/WorkspacesPage/WorkspacesTable.tsx | 3 ++- site/tailwind.config.js | 2 +- 5 files changed, 15 insertions(+), 27 deletions(-) diff --git a/site/src/components/Avatar/AvatarData.tsx b/site/src/components/Avatar/AvatarData.tsx index 008aaafd27..5eda0e326d 100644 --- a/site/src/components/Avatar/AvatarData.tsx +++ b/site/src/components/Avatar/AvatarData.tsx @@ -37,31 +37,17 @@ export const AvatarData: FC = ({ } return ( - +
{avatar} - - - {title} - +
+ {title} {subtitle && ( - + {subtitle} )} - - +
+
); }; diff --git a/site/src/components/Avatar/AvatarDataSkeleton.tsx b/site/src/components/Avatar/AvatarDataSkeleton.tsx index b360e80611..13083ce8b0 100644 --- a/site/src/components/Avatar/AvatarDataSkeleton.tsx +++ b/site/src/components/Avatar/AvatarDataSkeleton.tsx @@ -4,13 +4,13 @@ import type { FC } from "react"; export const AvatarDataSkeleton: FC = () => { return ( - - +
+ - +
- - +
+
); }; diff --git a/site/src/pages/TemplatesPage/TemplatesPageView.tsx b/site/src/pages/TemplatesPage/TemplatesPageView.tsx index 3d51570f9f..5d2a512980 100644 --- a/site/src/pages/TemplatesPage/TemplatesPageView.tsx +++ b/site/src/pages/TemplatesPage/TemplatesPageView.tsx @@ -113,6 +113,7 @@ const TemplateRow: FC = ({ showOrganizations, template }) => { subtitle={template.description} avatar={ = ({ } subtitle={
- User: + Owner: {workspace.owner_name}
} @@ -230,6 +230,7 @@ export const WorkspacesTable: FC = ({ variant="icon" src={workspace.template_icon} fallback={workspace.name} + size="lg" /> } /> diff --git a/site/tailwind.config.js b/site/tailwind.config.js index aa5a338c34..449b07b54d 100644 --- a/site/tailwind.config.js +++ b/site/tailwind.config.js @@ -15,7 +15,7 @@ module.exports = { }, fontSize: { "2xs": ["0.625rem", "0.875rem"], - xs: ["0.75rem", "1.125rem"], + xs: ["0.75rem", "1rem"], sm: ["0.875rem", "1.5rem"], "3xl": ["2rem", "2.5rem"], },