File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
frontend/plugins/operation_ui/src/modules/task/components Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff 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 ) }
You can’t perform that action at this time.
0 commit comments