File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ function GUI() {
233233 if ( inputContainerRef . current && topGuiDivRef . current ) {
234234 const scrollTop = topGuiDivRef . current . scrollTop ;
235235 const height = inputContainerRef . current . offsetHeight ;
236- const newPadding = isNewSession ? '0px' : `${ height + 20 } px` ;
236+ const newPadding = `${ height + 20 } px` ;
237237
238238 topGuiDivRef . current . style . paddingBottom = '0px' ;
239239 topGuiDivRef . current . offsetHeight ;
@@ -372,8 +372,9 @@ function GUI() {
372372 [ state . history ] ,
373373 ) ;
374374
375- const adjustPadding = useCallback ( ( height : number ) => {
376- if ( topGuiDivRef . current ) {
375+ const adjustPadding = useCallback ( ( ) => {
376+ if ( inputContainerRef . current && topGuiDivRef . current ) {
377+ const height = inputContainerRef . current . offsetHeight ;
377378 topGuiDivRef . current . style . paddingBottom = `${ height + 20 } px` ;
378379 }
379380 } , [ ] ) ;
You can’t perform that action at this time.
0 commit comments