Skip to content

Commit 06563ef

Browse files
committed
Refactor template editor
1 parent cdcc903 commit 06563ef

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

site/src/components/Resources/AgentRowPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const AgentRowPreview: FC<AgentRowPreviewProps> = ({
103103
const styles = {
104104
agentRow: (theme) => ({
105105
padding: "16px 32px",
106-
backgroundColor: theme.palette.background.paperLight,
106+
backgroundColor: theme.palette.background.paper,
107107
fontSize: 16,
108108
position: "relative",
109109

site/src/components/SyntaxHighlighter/coderTheme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ export const coderTheme = (theme: Theme): editor.IStandaloneThemeData => ({
207207
],
208208
colors: {
209209
"editor.foreground": theme.palette.text.primary,
210-
"editor.background": theme.palette.background.paper,
210+
"editor.background": theme.palette.background.default,
211211
"editor.selectionBackground": theme.palette.action.hover,
212-
"editor.lineHighlightBackground": theme.palette.background.paperLight,
212+
"editor.lineHighlightBackground": theme.palette.background.paper,
213213

214214
"editorCursor.foreground": "#f8f8f0",
215215
"editorWhitespace.foreground": "#3B3A32",

site/src/pages/TemplateVersionEditorPage/TemplateVersionEditor.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ const styles = {
471471
alignItems: "center",
472472
justifyContent: "space-between",
473473
height: topbarHeight,
474-
background: theme.palette.background.paper,
475474
}),
476475
topbarSides: {
477476
display: "flex",
@@ -486,7 +485,6 @@ const styles = {
486485
},
487486
sidebar: (theme) => ({
488487
minWidth: 256,
489-
backgroundColor: theme.palette.background.paper,
490488
borderRight: `1px solid ${theme.palette.divider}`,
491489
}),
492490
sidebarTitle: (theme) => ({

0 commit comments

Comments
 (0)