Skip to content

Commit 8a1cbba

Browse files
committed
w o w
1 parent 2fbd6ea commit 8a1cbba

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

site/src/components/Filter/filter.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,12 @@ export const Filter: FC<FilterProps> = ({
191191
const hasFilterQuery = filter.query !== "";
192192

193193
return (
194-
<Box
195-
sx={{
194+
<div
195+
css={{
196196
display: "flex",
197-
flexWrap: ["wrap", undefined, "nowrap"], // TODO: what even is this?
198-
gap: 1,
199-
marginBottom: 2,
197+
flexWrap: "wrap",
198+
gap: 8,
199+
marginBottom: 16,
200200
}}
201201
>
202202
{isLoading ? (
@@ -283,7 +283,7 @@ export const Filter: FC<FilterProps> = ({
283283
{options}
284284
</>
285285
)}
286-
</Box>
286+
</div>
287287
);
288288
};
289289

site/src/pages/TemplatePage/TemplateEmbedPage/TemplateEmbedPage.tsx

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,22 @@ export const TemplateEmbedPageView: FC<{
145145
</VerticalForm>
146146
</div>
147147

148-
{/* why are you like this */}
149-
<Box
150-
display="flex"
151-
height={{
148+
<div
149+
css={(theme) => ({
152150
// 80px for padding, 36px is for the status bar. We want to use `vh`
153151
// so that it will be relative to the screen and not the parent layout.
154152
height: "calc(100vh - (80px + 36px))",
155153
top: 40,
156154
position: "sticky",
157-
}}
158-
p={8}
159-
flex={1}
160-
alignItems="center"
161-
justifyContent="center"
162-
borderRadius={1}
163-
bgcolor="background.paper"
164-
border={(theme) => `1px solid ${theme.palette.divider}`}
155+
display: "flex",
156+
padding: 64,
157+
flex: 1,
158+
alignItems: "center",
159+
justifyContent: "center",
160+
borderRadius: 8,
161+
backgroundColor: theme.palette.background.paper,
162+
border: `1px solid ${theme.palette.divider}`,
163+
})}
165164
>
166165
<img src="/open-in-coder.svg" alt="Open in Coder button" />
167166
<div
@@ -187,7 +186,7 @@ export const TemplateEmbedPageView: FC<{
187186
Copy button code
188187
</Button>
189188
</div>
190-
</Box>
189+
</div>
191190
</div>
192191
)}
193192
</>

0 commit comments

Comments
 (0)