浏览代码

Remove ksql editor unnecessary line (#2339)

Robert Azizbekyan 2 年之前
父节点
当前提交
9827e01047
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      kafka-ui-react-app/src/components/KsqlDb/Query/QueryForm/QueryForm.styled.ts

+ 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)(
   ({ readOnly, theme }) =>
-    readOnly &&
     css`
-      background: ${theme.ksqlDb.query.editor.readonly.background};
+      background: ${readOnly && theme.ksqlDb.query.editor.readonly.background};
       .ace-cursor {
-        ${theme.ksqlDb.query.editor.readonly.cursor}
+        ${readOnly && theme.ksqlDb.query.editor.readonly.cursor}
+      }
+      .ace_print-margin {
+        display: none;
       }
     `
 );