Skip to content
Merged
Prev Previous commit
Next Next commit
Refactor deploy settings and workspace page
  • Loading branch information
BrunoQuaresma committed Nov 24, 2023
commit cdcc9032fc60e334afed9e98f57bcb4a46dc0f10
3 changes: 1 addition & 2 deletions site/src/components/DeploySettingsLayout/Fieldset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const Fieldset: FC<FieldsetProps> = (props) => {
css={{
borderRadius: 8,
border: `1px solid ${theme.palette.divider}`,
background: theme.palette.background.paper,
marginTop: 32,
}}
onSubmit={onSubmit}
Expand Down Expand Up @@ -63,7 +62,7 @@ export const Fieldset: FC<FieldsetProps> = (props) => {
css={[
theme.typography.body2 as CSSObject,
{
background: theme.palette.background.paperLight,
background: theme.palette.background.paper,
padding: "16px 24px",
display: "flex",
alignItems: "center",
Expand Down
8 changes: 2 additions & 6 deletions site/src/components/DeploySettingsLayout/Option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ interface OptionConfigProps extends BoxProps {
export const OptionConfig = (props: OptionConfigProps) => {
const { source, sx, ...attrs } = props;
const theme = useTheme();
const borderColor = source
? theme.palette.primary.main
: theme.palette.divider;
const borderColor = source ? undefined : theme.palette.divider;

return (
<Box
Expand All @@ -139,9 +137,7 @@ export const OptionConfig = (props: OptionConfigProps) => {
fontFamily: MONOSPACE_FONT_FAMILY,
fontWeight: 600,
backgroundColor: (theme) =>
source
? theme.palette.primary.dark
: theme.palette.background.paperLight,
source ? theme.palette.primary.dark : theme.palette.background.paper,
display: "inline-flex",
alignItems: "center",
borderRadius: 0.25,
Expand Down
3 changes: 1 addition & 2 deletions site/src/components/ErrorBoundary/RuntimeErrorState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ const styles = {
}),

stack: (theme) => ({
backgroundColor: theme.palette.background.paper,
border: `1px solid ${theme.palette.divider}`,
borderRadius: 4,
marginTop: 64,
Expand All @@ -174,7 +173,7 @@ const styles = {
fontWeight: 600,
letterSpacing: 1,
padding: "8px 8px 8px 16px",
backgroundColor: theme.palette.background.paperLight,
backgroundColor: theme.palette.background.paper,
borderBottom: `1px solid ${theme.palette.divider}`,
color: theme.palette.text.secondary,
display: "flex",
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Filter/filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const BaseSkeleton = (props: SkeletonProps) => {
height={36}
{...props}
sx={{
bgcolor: (theme) => theme.palette.background.paperLight,
bgcolor: (theme) => theme.palette.background.paper,
borderRadius: "6px",
...props.sx,
}}
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Markdown/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const markdownStyles: Interpolation<Theme> = (theme: Theme) => ({
},

"& .prismjs": {
background: theme.palette.background.paperLight,
background: theme.palette.background.paper,
borderRadius: 8,
padding: "16px 24px",
overflowX: "auto",
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/PageHeader/FullWidthPageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const FullWidthPageHeader: FC<
{
...(theme.typography.body2 as CSSObject),
padding: 24,
background: theme.palette.background.paper,
background: theme.palette.background.default,
borderBottom: `1px solid ${theme.palette.divider}`,
display: "flex",
alignItems: "center",
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Resources/AgentRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ const useAgentLogs = (

const styles = {
agentRow: (theme) => ({
backgroundColor: theme.palette.background.paperLight,
backgroundColor: theme.palette.background.paper,
fontSize: 16,
borderLeft: `2px solid ${theme.palette.text.secondary}`,

Expand Down
1 change: 0 additions & 1 deletion site/src/components/Resources/ResourceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { SensitiveValue } from "./SensitiveValue";

const styles = {
resourceCard: (theme) => ({
background: theme.palette.background.paper,
borderRadius: 8,
border: `1px solid ${theme.palette.divider}`,

Expand Down