File tree Expand file tree Collapse file tree
assets/stylesheets/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -293,6 +293,11 @@ a.topic-icon {
293293 }
294294}
295295
296+ .topic-row .is-popover-open {
297+ position : relative;
298+ z-index : 5 ;
299+ }
300+
296301.topic-row .topic-new ,
297302.topic-row .topic-reading {
298303 background : var (--color-bg-unread );
Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ export default class extends Controller {
1313 show ( ) {
1414 this . _clearTimeout ( )
1515 this . element . classList . add ( "is-open" )
16+ this . _updateRowOpenState ( )
1617 }
1718
1819 scheduleHide ( ) {
1920 this . _clearTimeout ( )
2021 this . hideTimeout = setTimeout ( ( ) => {
2122 this . element . classList . remove ( "is-open" )
23+ this . _updateRowOpenState ( )
2224 } , this . delay )
2325 }
2426
@@ -28,4 +30,12 @@ export default class extends Controller {
2830 this . hideTimeout = null
2931 }
3032 }
33+
34+ _updateRowOpenState ( ) {
35+ const row = this . element . closest ( ".topic-row" )
36+ if ( ! row ) return
37+
38+ const hasOpenPopover = row . querySelector ( ".topic-icon.is-open" )
39+ row . classList . toggle ( "is-popover-open" , Boolean ( hasOpenPopover ) )
40+ }
3141}
You can’t perform that action at this time.
0 commit comments