File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 166
166
167
167
// Init entry's elems
168
168
const ssEntry = {
169
- div : dom . create . elem ( 'div' , { class : 'menu-entry' } ) ,
169
+ div : dom . create . elem ( 'div' , { class : 'menu-entry highlight-on-hover ' } ) ,
170
170
switchLabelDiv : dom . create . elem ( 'div' , {
171
- class : 'highlight-on-hover' ,
172
171
title : `${ getMsg ( 'helptip_run' ) } ${ app . name } on ${ sites [ site ] . urls . homepage } ` ,
173
172
style : `display: flex ; height: 33px ; align-items: center ; flex-grow: 1 ;
174
173
margin-left: -2px ; padding-left: 2px /* fill .menu-entry left-padding */` } ) ,
199
198
getMsg ( `state_${ extensionIsDisabled ( ) ? 'off' : 'on' } ` ) . toUpperCase ( ) } `)
200
199
}
201
200
}
202
- ssEntry . faviconDiv . onmouseenter = ssEntry . faviconDiv . onmouseleave = ( { type } ) => // swap favicon/open icon
203
- ssEntry . faviconDiv . firstChild . replaceWith ( type == 'mouseenter' ? ssEntry . openIcon : ssEntry . favicon )
201
+ ssEntry . faviconDiv . onmouseenter = ssEntry . faviconDiv . onmouseleave = ( { type } ) =>
202
+ ssEntry . faviconDiv . firstChild . replaceWith ( ssEntry [ type == 'mouseenter' ? ' openIcon' : ' favicon' ] )
204
203
ssEntry . faviconDiv . onclick = ( ) => { open ( `https://${ sites [ site ] . urls . homepage } ` ) ; close ( ) }
205
204
}
206
205
Original file line number Diff line number Diff line change 166
166
167
167
// Init entry's elems
168
168
const ssEntry = {
169
- div : dom . create . elem ( 'div' , { class : 'menu-entry' } ) ,
169
+ div : dom . create . elem ( 'div' , { class : 'menu-entry highlight-on-hover ' } ) ,
170
170
switchLabelDiv : dom . create . elem ( 'div' , {
171
- class : 'highlight-on-hover' ,
172
171
title : `${ getMsg ( 'helptip_run' ) } ${ app . name } on ${ sites [ site ] . urls . homepage } ` ,
173
172
style : `display: flex ; height: 33px ; align-items: center ; flex-grow: 1 ;
174
173
margin-left: -2px ; padding-left: 2px /* fill .menu-entry left-padding */` } ) ,
199
198
getMsg ( `state_${ extensionIsDisabled ( ) ? 'off' : 'on' } ` ) . toUpperCase ( ) } `)
200
199
}
201
200
}
202
- ssEntry . faviconDiv . onmouseenter = ssEntry . faviconDiv . onmouseleave = ( { type } ) => // swap favicon/open icon
203
- ssEntry . faviconDiv . firstChild . replaceWith ( type == 'mouseenter' ? ssEntry . openIcon : ssEntry . favicon )
201
+ ssEntry . faviconDiv . onmouseenter = ssEntry . faviconDiv . onmouseleave = ( { type } ) =>
202
+ ssEntry . faviconDiv . firstChild . replaceWith ( ssEntry [ type == 'mouseenter' ? ' openIcon' : ' favicon' ] )
204
203
ssEntry . faviconDiv . onclick = ( ) => { open ( `https://${ sites [ site ] . urls . homepage } ` ) ; close ( ) }
205
204
}
206
205
You can’t perform that action at this time.
0 commit comments