Change the default font size in code editor to be 12 (#1021)

This commit is contained in:
Shuchang Zheng
2024-10-21 11:56:53 -07:00
committed by GitHub
parent 935ecd046f
commit 437f70427f
11 changed files with 6 additions and 13 deletions

View File

@@ -21,7 +21,6 @@ function WorkflowParameterInput({ type, value, onChange }: Props) {
value={
typeof value === "string" ? value : JSON.stringify(value, null, 2)
}
fontSize={12}
/>
);
}

View File

@@ -494,7 +494,6 @@ function WorkflowRun() {
value={JSON.stringify(value, null, 2)}
readOnly
language="json"
fontSize={12}
minHeight="96px"
maxHeight="500px"
/>

View File

@@ -23,7 +23,7 @@ function CodeEditor({
language,
className,
readOnly = false,
fontSize = 8,
fontSize = 12,
}: Props) {
const extensions =
language === "json"

View File

@@ -41,6 +41,7 @@ function DataSchema({ value, onChange }: Props) {
// TODO
}}
className="nowheel nopan"
fontSize={8}
/>
</div>
</div>

View File

@@ -70,6 +70,7 @@ function CodeBlockNode({ id, data }: NodeProps<CodeBlockNode>) {
updateNodeData(id, { code: value });
}}
className="nopan"
fontSize={8}
/>
</div>
</div>

View File

@@ -223,6 +223,7 @@ function TaskNode({ id, data }: NodeProps<TaskNode>) {
handleChange("dataSchema", value);
}}
className="nowheel nopan"
fontSize={8}
/>
</div>
)}
@@ -324,6 +325,7 @@ function TaskNode({ id, data }: NodeProps<TaskNode>) {
handleChange("errorCodeMapping", value);
}}
className="nowheel nopan"
fontSize={8}
/>
</div>
)}

View File

@@ -115,6 +115,7 @@ function TextPromptNode({ id, data }: NodeProps<TextPromptNode>) {
updateNodeData(id, { jsonSchema: value });
}}
className="nowheel nopan"
fontSize={8}
/>
</div>
)}