Skip to content

Commit cdcc903

Browse files
committed
Refactor deploy settings and workspace page
1 parent 10991fc commit cdcc903

File tree

8 files changed

+8
-15
lines changed

8 files changed

+8
-15
lines changed

site/src/components/DeploySettingsLayout/Fieldset.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export const Fieldset: FC<FieldsetProps> = (props) => {
2929
css={{
3030
borderRadius: 8,
3131
border: `1px solid ${theme.palette.divider}`,
32-
background: theme.palette.background.paper,
3332
marginTop: 32,
3433
}}
3534
onSubmit={onSubmit}
@@ -63,7 +62,7 @@ export const Fieldset: FC<FieldsetProps> = (props) => {
6362
css={[
6463
theme.typography.body2 as CSSObject,
6564
{
66-
background: theme.palette.background.paperLight,
65+
background: theme.palette.background.paper,
6766
padding: "16px 24px",
6867
display: "flex",
6968
alignItems: "center",

site/src/components/DeploySettingsLayout/Option.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ interface OptionConfigProps extends BoxProps {
127127
export const OptionConfig = (props: OptionConfigProps) => {
128128
const { source, sx, ...attrs } = props;
129129
const theme = useTheme();
130-
const borderColor = source
131-
? theme.palette.primary.main
132-
: theme.palette.divider;
130+
const borderColor = source ? undefined : theme.palette.divider;
133131

134132
return (
135133
<Box
@@ -139,9 +137,7 @@ export const OptionConfig = (props: OptionConfigProps) => {
139137
fontFamily: MONOSPACE_FONT_FAMILY,
140138
fontWeight: 600,
141139
backgroundColor: (theme) =>
142-
source
143-
? theme.palette.primary.dark
144-
: theme.palette.background.paperLight,
140+
source ? theme.palette.primary.dark : theme.palette.background.paper,
145141
display: "inline-flex",
146142
alignItems: "center",
147143
borderRadius: 0.25,

site/src/components/ErrorBoundary/RuntimeErrorState.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ const styles = {
160160
}),
161161

162162
stack: (theme) => ({
163-
backgroundColor: theme.palette.background.paper,
164163
border: `1px solid ${theme.palette.divider}`,
165164
borderRadius: 4,
166165
marginTop: 64,
@@ -174,7 +173,7 @@ const styles = {
174173
fontWeight: 600,
175174
letterSpacing: 1,
176175
padding: "8px 8px 8px 16px",
177-
backgroundColor: theme.palette.background.paperLight,
176+
backgroundColor: theme.palette.background.paper,
178177
borderBottom: `1px solid ${theme.palette.divider}`,
179178
color: theme.palette.text.secondary,
180179
display: "flex",

site/src/components/Filter/filter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const BaseSkeleton = (props: SkeletonProps) => {
125125
height={36}
126126
{...props}
127127
sx={{
128-
bgcolor: (theme) => theme.palette.background.paperLight,
128+
bgcolor: (theme) => theme.palette.background.paper,
129129
borderRadius: "6px",
130130
...props.sx,
131131
}}

site/src/components/Markdown/Markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const markdownStyles: Interpolation<Theme> = (theme: Theme) => ({
217217
},
218218

219219
"& .prismjs": {
220-
background: theme.palette.background.paperLight,
220+
background: theme.palette.background.paper,
221221
borderRadius: 8,
222222
padding: "16px 24px",
223223
overflowX: "auto",

site/src/components/PageHeader/FullWidthPageHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const FullWidthPageHeader: FC<
1212
{
1313
...(theme.typography.body2 as CSSObject),
1414
padding: 24,
15-
background: theme.palette.background.paper,
15+
background: theme.palette.background.default,
1616
borderBottom: `1px solid ${theme.palette.divider}`,
1717
display: "flex",
1818
alignItems: "center",

site/src/components/Resources/AgentRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ const useAgentLogs = (
513513

514514
const styles = {
515515
agentRow: (theme) => ({
516-
backgroundColor: theme.palette.background.paperLight,
516+
backgroundColor: theme.palette.background.paper,
517517
fontSize: 16,
518518
borderLeft: `2px solid ${theme.palette.text.secondary}`,
519519

site/src/components/Resources/ResourceCard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { SensitiveValue } from "./SensitiveValue";
1313

1414
const styles = {
1515
resourceCard: (theme) => ({
16-
background: theme.palette.background.paper,
1716
borderRadius: 8,
1817
border: `1px solid ${theme.palette.divider}`,
1918

0 commit comments

Comments
 (0)