Skip to content

Commit

Permalink
Change the default font size in code editor to be 12 (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Oct 21, 2024
1 parent 935ecd0 commit 437f704
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ function CreateNewTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
fontSize={12}
minHeight="96px"
maxHeight="500px"
value={
Expand Down Expand Up @@ -388,7 +387,6 @@ function CreateNewTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
fontSize={12}
minHeight="96px"
maxHeight="500px"
value={field.value === null ? "" : field.value}
Expand Down Expand Up @@ -509,7 +507,6 @@ function CreateNewTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
fontSize={12}
minHeight="96px"
maxHeight="500px"
value={field.value === null ? "" : field.value}
Expand Down
3 changes: 0 additions & 3 deletions skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ function SavedTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
fontSize={12}
minHeight="96px"
maxHeight="500px"
value={
Expand Down Expand Up @@ -557,7 +556,6 @@ function SavedTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
fontSize={14}
minHeight="96px"
maxHeight="500px"
value={
Expand Down Expand Up @@ -683,7 +681,6 @@ function SavedTaskForm({ initialValues }: Props) {
<CodeEditor
{...field}
language="json"
fontSize={12}
minHeight="96px"
maxHeight="500px"
value={field.value === null ? "" : field.value}
Expand Down
2 changes: 0 additions & 2 deletions skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ function TaskDetails() {
language="json"
value={JSON.stringify(task.extracted_information, null, 2)}
readOnly
fontSize={12}
minHeight={"96px"}
maxHeight={"500px"}
className="w-full"
Expand All @@ -149,7 +148,6 @@ function TaskDetails() {
language="json"
value={JSON.stringify(task.failure_reason, null, 2)}
readOnly
fontSize={12}
minHeight={"96px"}
maxHeight={"500px"}
className="w-full"
Expand Down
2 changes: 0 additions & 2 deletions skyvern-frontend/src/routes/tasks/detail/TaskParameters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function TaskParameters() {
readOnly
minHeight="96px"
maxHeight="500px"
fontSize={12}
/>
</div>
<div className="flex gap-16">
Expand Down Expand Up @@ -113,7 +112,6 @@ function TaskParameters() {
readOnly
minHeight="96px"
maxHeight="500px"
fontSize={12}
/>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function WorkflowParameterInput({ type, value, onChange }: Props) {
value={
typeof value === "string" ? value : JSON.stringify(value, null, 2)
}
fontSize={12}
/>
);
}
Expand Down
1 change: 0 additions & 1 deletion skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ function WorkflowRun() {
value={JSON.stringify(value, null, 2)}
readOnly
language="json"
fontSize={12}
minHeight="96px"
maxHeight="500px"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function CodeEditor({
language,
className,
readOnly = false,
fontSize = 8,
fontSize = 12,
}: Props) {
const extensions =
language === "json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function DataSchema({ value, onChange }: Props) {
// TODO
}}
className="nowheel nopan"
fontSize={8}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function CodeBlockNode({ id, data }: NodeProps<CodeBlockNode>) {
updateNodeData(id, { code: value });
}}
className="nopan"
fontSize={8}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ function TaskNode({ id, data }: NodeProps<TaskNode>) {
handleChange("dataSchema", value);
}}
className="nowheel nopan"
fontSize={8}
/>
</div>
)}
Expand Down Expand Up @@ -324,6 +325,7 @@ function TaskNode({ id, data }: NodeProps<TaskNode>) {
handleChange("errorCodeMapping", value);
}}
className="nowheel nopan"
fontSize={8}
/>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function TextPromptNode({ id, data }: NodeProps<TextPromptNode>) {
updateNodeData(id, { jsonSchema: value });
}}
className="nowheel nopan"
fontSize={8}
/>
</div>
)}
Expand Down

0 comments on commit 437f704

Please sign in to comment.