Skip to content

refactor(site): improve first workspace creation time #10510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix layout for odd number of templates
  • Loading branch information
BrunoQuaresma committed Nov 3, 2023
commit 1b273505b298bef9620e73b6d5df0b655dcfa188
7 changes: 5 additions & 2 deletions site/src/pages/WorkspacesPage/WorkspacesEmpty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,20 @@ export const WorkspacesEmpty = (props: {
<div>
<div
css={(theme) => ({
display: "grid",
gridTemplateColumns: "repeat(2, 320px)",
display: "flex",
flexWrap: "wrap",
gap: theme.spacing(2),
marginBottom: theme.spacing(3),
justifyContent: "center",
maxWidth: "800px",
})}
>
{featuredTemplates?.map((t) => (
<Link
to={`/templates/${t.name}/workspace`}
key={t.id}
css={(theme) => ({
width: "320px",
padding: theme.spacing(2),
borderRadius: 6,
border: `1px solid ${theme.palette.divider}`,
Expand Down