Skip to content

chore: use emotion for styling (pt. 3) #10026

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 16 commits into from
Oct 5, 2023
Prev Previous commit
Next Next commit
justice
  • Loading branch information
aslilac committed Oct 4, 2023
commit db60ab26263869ca3fe616d2bc8a6b77d4a68236
5 changes: 5 additions & 0 deletions site/src/components/Resources/ResourceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ const styles = {
"&:last-child": {
borderBottom: 0,
},

[theme.breakpoints.down("md")]: {
width: "100%",
overflow: "scroll",
},
}),

metadata: (theme) => ({
Expand Down
4 changes: 0 additions & 4 deletions site/src/components/Stack/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ export const Stack: FC<StackProps> = (props) => {
justifyContent: justifyContent,
flexWrap: wrap,
maxWidth: maxWidth,

[theme.breakpoints.down("md")]: {
width: "100%",
},
})}
>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,6 @@ export const NoIcon: Story = {
},
};

export const SmallViewport: Story = {
args: {
template: MockTemplate,
activeVersion: {
...MockTemplateVersion,
readme: `---
name:Template test
---
## Instructions
You can add instructions here

[Some link info](https://coder.com)
\`\`\`
# This is a really long sentence to test that the code block wraps into a new line properly.
\`\`\`
`,
},
resources: [MockWorkspaceResource, MockWorkspaceVolumeResource],
},
};

SmallViewport.parameters = {
chromatic: { viewports: [600] },
};

export const WithDeprecatedParameters: Story = {
args: {
template: MockTemplate,
Expand Down