Change appearance of parameters in task details (#1017)

This commit is contained in:
Shuchang Zheng
2024-10-21 09:29:49 -07:00
committed by GitHub
parent 9a9057ccf7
commit 442f70c58e
5 changed files with 106 additions and 88 deletions

View File

@@ -8,7 +8,7 @@ type Props = {
value: string;
onChange?: (value: string) => void;
language: "python" | "json";
disabled?: boolean;
readOnly?: boolean;
minHeight?: string;
maxHeight?: string;
className?: string;
@@ -22,7 +22,7 @@ function CodeEditor({
maxHeight,
language,
className,
disabled,
readOnly = false,
fontSize = 8,
}: Props) {
const extensions =
@@ -37,7 +37,7 @@ function CodeEditor({
theme={tokyoNightStorm}
minHeight={minHeight}
maxHeight={maxHeight}
readOnly={disabled}
readOnly={readOnly}
className={cn("cursor-auto", className)}
style={{
fontSize: fontSize,