File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -541,10 +541,7 @@ function openSearch() {
541541 searchBarEl . style . display = "flex" ;
542542 updateSearchUI ( ) ;
543543 searchInputEl . focus ( ) ;
544- if (
545- panelState . open &&
546- annotationsPanelEl . classList . contains ( "floating" )
547- ) {
544+ if ( panelState . open && annotationsPanelEl . classList . contains ( "floating" ) ) {
548545 applyFloatingPanelPosition ( ) ;
549546 }
550547 // Text extraction is handled by the background preloader
@@ -554,10 +551,7 @@ function closeSearch() {
554551 if ( ! searchOpen ) return ;
555552 searchOpen = false ;
556553 searchBarEl . style . display = "none" ;
557- if (
558- panelState . open &&
559- annotationsPanelEl . classList . contains ( "floating" )
560- ) {
554+ if ( panelState . open && annotationsPanelEl . classList . contains ( "floating" ) ) {
561555 applyFloatingPanelPosition ( ) ;
562556 }
563557 searchQuery = "" ;
You can’t perform that action at this time.
0 commit comments