@@ -1355,13 +1355,13 @@ function RemoteFunctions(config = {}) {
13551355 ` ,
13561356
13571357 folderSettings : `
1358- <svg viewBox="0 0 24 24" fill="currentColor" width="18 " height="18 ">
1358+ <svg viewBox="0 0 24 24" fill="currentColor" width="16 " height="16 ">
13591359 <path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/>
13601360 </svg>
13611361 ` ,
13621362
13631363 close : `
1364- <svg viewBox="0 0 24 24" fill="currentColor" width="16 " height="16 ">
1364+ <svg viewBox="0 0 24 24" fill="currentColor" width="15 " height="15 ">
13651365 <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
13661366 </svg>
13671367 `
@@ -2419,6 +2419,7 @@ function RemoteFunctions(config = {}) {
24192419 .phoenix-ribbon-search-btn {
24202420 background: transparent !important;
24212421 border: 1px solid transparent !important;
2422+ border-left: 1px solid gray !important;
24222423 color: #a0a0a0 !important;
24232424 cursor: pointer !important;
24242425 padding: 2px 6px !important;
@@ -3896,7 +3897,7 @@ function RemoteFunctions(config = {}) {
38963897 // but the element stays at position which will lead to drift between the element & boxes
38973898 function _dismissBoxesForFixedElements ( ) {
38983899 // first we try more options box, because its position is generally fixed even in overlapping cases
3899- if ( _nodeMoreOptionsBox && _nodeMoreOptionsBox . element ) {
3900+ if ( _nodeMoreOptionsBox && _nodeMoreOptionsBox . element && _nodeMoreOptionsBox . _shadow ) {
39003901 const moreOptionsBoxElement = _nodeMoreOptionsBox . _shadow . querySelector ( '.phoenix-more-options-box' ) ;
39013902 if ( moreOptionsBoxElement ) {
39023903
@@ -3919,7 +3920,7 @@ function RemoteFunctions(config = {}) {
39193920 }
39203921 }
39213922 }
3922- } else if ( _nodeInfoBox && _nodeInfoBox . element ) {
3923+ } else if ( _nodeInfoBox && _nodeInfoBox . element && _nodeInfoBox . _shadow ) {
39233924 // if more options box didn't exist, we check with info box (logic is same)
39243925 const infoBoxElement = _nodeInfoBox . _shadow . querySelector ( '.phoenix-node-info-box' ) ;
39253926 if ( infoBoxElement ) {
@@ -3954,7 +3955,7 @@ function RemoteFunctions(config = {}) {
39543955 // now when live preview is scrolled the element remains at a fixed position but the AI box will drift away
39553956 // so we reposition it when its a fixed element
39563957 function _repositionAIBox ( ) {
3957- if ( ! _aiPromptBox || ! _aiPromptBox . element ) { return ; }
3958+ if ( ! _aiPromptBox || ! _aiPromptBox . element || ! _aiPromptBox . _shadow ) { return ; }
39583959
39593960 const aiBox = _aiPromptBox . _shadow . querySelector ( '.phoenix-ai-prompt-box' ) ;
39603961 if ( ! aiBox ) { return ; }
0 commit comments