Selaa lähdekoodia

Remove ksql editor unnecessary line (#2339)

Robert Azizbekyan 2 vuotta sitten
vanhempi
commit
9827e01047

+ 5 - 3
kafka-ui-react-app/src/components/KsqlDb/Query/QueryForm/QueryForm.styled.ts

@@ -65,11 +65,13 @@ export const Fieldset = styled.fieldset`
 
 
 export const SQLEditor = styled(BaseSQLEditor)(
 export const SQLEditor = styled(BaseSQLEditor)(
   ({ readOnly, theme }) =>
   ({ readOnly, theme }) =>
-    readOnly &&
     css`
     css`
-      background: ${theme.ksqlDb.query.editor.readonly.background};
+      background: ${readOnly && theme.ksqlDb.query.editor.readonly.background};
       .ace-cursor {
       .ace-cursor {
-        ${theme.ksqlDb.query.editor.readonly.cursor}
+        ${readOnly && theme.ksqlDb.query.editor.readonly.cursor}
+      }
+      .ace_print-margin {
+        display: none;
       }
       }
     `
     `
 );
 );