mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor: Minor design adjustments (#1637)
This commit is contained in:
@@ -42,6 +42,7 @@ const useFooterStyles = makeStyles((theme) => ({
|
||||
flex: "0",
|
||||
paddingTop: theme.spacing(2),
|
||||
paddingBottom: theme.spacing(2),
|
||||
marginTop: theme.spacing(3),
|
||||
},
|
||||
copyRight: {
|
||||
margin: theme.spacing(0.25),
|
||||
|
||||
@@ -17,7 +17,6 @@ export const useStyles = makeStyles((theme) => ({
|
||||
layout: {
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
gap: theme.spacing(2),
|
||||
alignItems: "center",
|
||||
},
|
||||
container: {
|
||||
|
||||
@@ -77,7 +77,7 @@ export const TemplatesPageView: React.FC<TemplatesPageViewProps> = (props) => {
|
||||
</TableRow>
|
||||
)}
|
||||
{props.templates?.map((template) => (
|
||||
<TableRow key={template.id} className={styles.templateRow}>
|
||||
<TableRow key={template.id}>
|
||||
<TableCell>
|
||||
<Box alignItems="center" display="flex">
|
||||
<Avatar variant="square" className={styles.templateAvatar}>
|
||||
@@ -127,12 +127,6 @@ const useStyles = makeStyles((theme) => ({
|
||||
lineHeight: `${theme.spacing(3)}px`,
|
||||
},
|
||||
},
|
||||
templateRow: {
|
||||
"& > td": {
|
||||
paddingTop: theme.spacing(2),
|
||||
paddingBottom: theme.spacing(2),
|
||||
},
|
||||
},
|
||||
templateAvatar: {
|
||||
borderRadius: 2,
|
||||
marginRight: theme.spacing(1),
|
||||
|
||||
@@ -48,6 +48,7 @@ export const WorkspaceBuildPage: React.FC = () => {
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
title: {
|
||||
marginTop: theme.spacing(5),
|
||||
paddingTop: theme.spacing(5),
|
||||
paddingBottom: theme.spacing(2),
|
||||
},
|
||||
}))
|
||||
|
||||
@@ -71,7 +71,7 @@ export const WorkspacesPageView: React.FC<WorkspacesPageViewProps> = (props) =>
|
||||
{props.workspaces?.map((workspace) => {
|
||||
const status = getDisplayStatus(theme, workspace.latest_build)
|
||||
return (
|
||||
<TableRow key={workspace.id} className={styles.workspaceRow}>
|
||||
<TableRow key={workspace.id}>
|
||||
<TableCell>
|
||||
<div className={styles.workspaceName}>
|
||||
<Avatar variant="square" className={styles.workspaceAvatar}>
|
||||
@@ -134,12 +134,6 @@ const useStyles = makeStyles((theme) => ({
|
||||
lineHeight: `${theme.spacing(3)}px`,
|
||||
},
|
||||
},
|
||||
workspaceRow: {
|
||||
"& > td": {
|
||||
paddingTop: theme.spacing(2),
|
||||
paddingBottom: theme.spacing(2),
|
||||
},
|
||||
},
|
||||
workspaceAvatar: {
|
||||
borderRadius: 2,
|
||||
marginRight: theme.spacing(1),
|
||||
|
||||
@@ -44,6 +44,11 @@ export const getOverrides = (palette: PaletteOptions) => {
|
||||
// Gives the appearance of a border!
|
||||
borderRadius: 2,
|
||||
border: `1px solid ${palette.divider}`,
|
||||
|
||||
"& td": {
|
||||
paddingTop: 16,
|
||||
paddingBottom: 16,
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiTableCell: {
|
||||
|
||||
Reference in New Issue
Block a user