Parcourir la source

fix: coze-editor line highlight transparent (#878)

* fix: coze-editor materials theme

* style: line highlight transparent

* fix: dark mode
chenjiawei.inizio il y a 3 mois
Parent
commit
034dc384e2

+ 1 - 1
packages/materials/form-materials/src/components/code-editor/theme/dark.ts

@@ -47,7 +47,7 @@ export const darkTheme: Extension = createTheme({
     gutterForeground: colors.foreground,
     gutterBorderColor: 'transparent',
     gutterBorderWidth: 0,
-    lineHighlight: '#21262D',
+    lineHighlight: 'transparent',
     bracketColors: ['#FBBF24', '#A78BFA', '#7DD3FC'],
     tooltip: {
       backgroundColor: '#21262D',

+ 1 - 1
packages/materials/form-materials/src/components/code-editor/theme/light.ts

@@ -42,7 +42,7 @@ export const lightTheme: Extension = createTheme({
     gutterForeground: colors.foreground,
     gutterBorderColor: 'transparent',
     gutterBorderWidth: 0,
-    lineHighlight: colors.background,
+    lineHighlight: 'transparent',
     bracketColors: ['#F59E0B', '#8B5CF6', '#06B6D4'],
     tooltip: {
       backgroundColor: colors.dropdownBackground,