Skip to content

Commit 0e8c68e

Browse files
chore: Increase border radius (#3493)
1 parent c3fcf7c commit 0e8c68e

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

site/src/components/BorderedMenu/BorderedMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const useStyles = makeStyles((theme) => ({
3636
paperRoot: {
3737
width: "292px",
3838
border: `2px solid ${theme.palette.secondary.dark}`,
39-
borderRadius: 7,
39+
borderRadius: theme.shape.borderRadius,
4040
boxShadow: `4px 4px 0px ${fade(theme.palette.secondary.dark, 0.2)}`,
4141
},
4242
}))

site/src/components/BorderedMenuRow/BorderedMenuRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const useStyles = makeStyles((theme) => ({
9191
padding: `0 ${theme.spacing(1.5)}px`,
9292
},
9393
content: {
94-
borderRadius: 7,
94+
borderRadius: theme.shape.borderRadius,
9595
display: "flex",
9696
flexDirection: "column",
9797
padding: theme.spacing(2),

site/src/components/CopyButton/CopyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const useStyles = makeStyles((theme) => ({
8989
marginLeft: theme.spacing(1),
9090
},
9191
copyButton: {
92-
borderRadius: 7,
92+
borderRadius: theme.shape.borderRadius,
9393
padding: theme.spacing(0.85),
9494
minWidth: 32,
9595

site/src/components/TemplateStats/TemplateStats.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { makeStyles } from "@material-ui/core/styles"
22
import { FC } from "react"
33
import { createDayString } from "util/createDayString"
44
import { Template, TemplateVersion } from "../../api/typesGenerated"
5-
import { CardRadius, MONOSPACE_FONT_FAMILY } from "../../theme/constants"
5+
import { MONOSPACE_FONT_FAMILY } from "../../theme/constants"
66

77
const Language = {
88
usedByLabel: "Used by",
@@ -59,7 +59,7 @@ const useStyles = makeStyles((theme) => ({
5959
paddingLeft: theme.spacing(2),
6060
paddingRight: theme.spacing(2),
6161
backgroundColor: theme.palette.background.paper,
62-
borderRadius: CardRadius,
62+
borderRadius: theme.shape.borderRadius,
6363
display: "flex",
6464
alignItems: "center",
6565
color: theme.palette.text.secondary,

site/src/components/WorkspaceBuildLogs/WorkspaceBuildLogs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const WorkspaceBuildLogs: FC<WorkspaceBuildLogsProps> = ({ logs }) => {
7979
const useStyles = makeStyles((theme) => ({
8080
logs: {
8181
border: `1px solid ${theme.palette.divider}`,
82-
borderRadius: 2,
82+
borderRadius: theme.shape.borderRadius,
8383
fontFamily: MONOSPACE_FONT_FAMILY,
8484
},
8585

site/src/components/WorkspaceBuildStats/WorkspaceBuildStats.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { makeStyles, useTheme } from "@material-ui/core/styles"
33
import { FC } from "react"
44
import { Link as RouterLink } from "react-router-dom"
55
import { WorkspaceBuild } from "../../api/typesGenerated"
6-
import { CardRadius, MONOSPACE_FONT_FAMILY } from "../../theme/constants"
6+
import { MONOSPACE_FONT_FAMILY } from "../../theme/constants"
77
import { combineClasses } from "../../util/combineClasses"
88
import {
99
displayWorkspaceBuildDuration,
@@ -72,7 +72,7 @@ const useStyles = makeStyles((theme) => ({
7272
paddingLeft: theme.spacing(2),
7373
paddingRight: theme.spacing(2),
7474
backgroundColor: theme.palette.background.paper,
75-
borderRadius: CardRadius,
75+
borderRadius: theme.shape.borderRadius,
7676
display: "flex",
7777
alignItems: "center",
7878
color: theme.palette.text.secondary,

site/src/components/WorkspaceScheduleButton/WorkspaceScheduleButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const useStyles = makeStyles((theme) => ({
179179
},
180180
},
181181
iconButton: {
182-
borderRadius: 2,
182+
borderRadius: theme.shape.borderRadius,
183183
},
184184
popoverPaper: {
185185
padding: `${theme.spacing(2)}px ${theme.spacing(3)}px ${theme.spacing(3)}px`,

site/src/components/WorkspaceSection/WorkspaceSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Paper from "@material-ui/core/Paper"
22
import { makeStyles } from "@material-ui/core/styles"
33
import Typography from "@material-ui/core/Typography"
44
import React, { HTMLProps } from "react"
5-
import { CardPadding, CardRadius } from "../../theme/constants"
5+
import { CardPadding } from "../../theme/constants"
66
import { combineClasses } from "../../util/combineClasses"
77

88
export interface WorkspaceSectionProps {
@@ -44,7 +44,7 @@ export const WorkspaceSection: React.FC<WorkspaceSectionProps> = ({
4444
const useStyles = makeStyles((theme) => ({
4545
root: {
4646
border: `1px solid ${theme.palette.divider}`,
47-
borderRadius: CardRadius,
47+
borderRadius: theme.shape.borderRadius,
4848
},
4949
contents: {
5050
margin: theme.spacing(2),

site/src/theme/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const spacing = 8
2-
export const borderRadius = 4
2+
export const borderRadius = 8
33
export const buttonBorderWidth = 2
44
export const MONOSPACE_FONT_FAMILY =
55
"'IBM Plex Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'Liberation Mono', 'Monaco', 'Courier New', Courier, monospace"

site/src/theme/overrides.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Theme } from "@material-ui/core/styles"
22
import { SimplePaletteColorOptions } from "@material-ui/core/styles/createPalette"
33
import { Overrides } from "@material-ui/core/styles/overrides"
4-
import { MONOSPACE_FONT_FAMILY } from "./constants"
4+
import { borderRadius, MONOSPACE_FONT_FAMILY } from "./constants"
55

66
export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
77
return {
@@ -74,7 +74,7 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
7474
},
7575
MuiTableContainer: {
7676
root: {
77-
borderRadius: 2,
77+
borderRadius,
7878
border: `1px solid ${palette.divider}`,
7979
},
8080
},
@@ -117,7 +117,7 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
117117
},
118118
MuiInputBase: {
119119
root: {
120-
borderRadius: 2,
120+
borderRadius,
121121
},
122122
},
123123
MuiOutlinedInput: {
@@ -141,7 +141,7 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
141141
},
142142
MuiPaper: {
143143
root: {
144-
borderRadius: 2,
144+
borderRadius,
145145
border: `1px solid ${palette.divider}`,
146146
},
147147
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy