Skip to content

Commit 7870fee

Browse files
committed
resolved review
1 parent 31d42a9 commit 7870fee

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

frontend/plugins/operation_ui/src/modules/task/components/TaskDetailSheet.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export const TaskDetailSheetHeader = () => {
5050
<IconArrowsDiagonal className="text-accent-foreground" />
5151
</Link>
5252
</Button>
53-
<Separator.Inline />
5453
</div>
5554
);
5655
};

frontend/plugins/operation_ui/src/modules/task/components/detail/TaskFields.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,23 @@ export const TaskFields = ({ task }: { task: ITask }) => {
8383
description: JSON.stringify(debouncedDescriptionContent),
8484
},
8585
});
86-
// eslint-disable-next-line react-hooks/exhaustive-deps
86+
// eslint-disable-next-line react-hooPks/exhaustive-deps
8787
}, [debouncedDescriptionContent]);
8888

8989
useEffect(() => {
90-
if (textareaRef.current && name) {
91-
textareaRef.current.style.height = 'auto';
92-
textareaRef.current.style.height = textareaRef.current.scrollHeight + 'px';
90+
if (!textareaRef.current) {
91+
return;
9392
}
93+
textareaRef.current.style.height = 'auto';
94+
textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;
9495
}, [name]);
9596

9697
return (
9798
<div className="flex flex-col gap-3">
9899
<Textarea
99100
ref={textareaRef}
100-
className="shadow-none focus-visible:shadow-none p-0"
101-
style={{ fontSize: "1.25rem", lineHeight: "1.75rem" }}
101+
className="shadow-none focus-visible:shadow-none p-0 text-xl"
102+
style={{ fontSize: '1.25rem', lineHeight: '1.75rem' }}
102103
placeholder="Task Name"
103104
value={name}
104105
onChange={(e) => setName(e.target.value)}

0 commit comments

Comments
 (0)