File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ HTMLOperation.prototype.toStubHtml = function(removeIcon) {
50
50
let html = "<li class='operation'" ;
51
51
52
52
if ( this . description ) {
53
- html += " data-container='body' data-toggle='popover' data- placement='auto right'\
54
- data-content=\"" + this . description + "\" data-html='true' data-trigger='hover' " ;
53
+ html += " data-container='body' data-placement='auto right'\
54
+ data-content=\"" + this . description + "\"" ;
55
55
}
56
56
57
57
html += ">" + this . name ;
Original file line number Diff line number Diff line change @@ -155,7 +155,22 @@ OperationsWaiter.prototype.getSelectedOp = function(ops) {
155
155
*/
156
156
OperationsWaiter . prototype . opListCreate = function ( e ) {
157
157
this . manager . recipe . createSortableSeedList ( e . target ) ;
158
- $ ( "[data-toggle=popover]" ) . popover ( ) ;
158
+ // Allows popover to gain focus for eg. pressing buttons/scrolling
159
+ $ ( ".operation" ) . popover ( { trigger : "manual" , html : true , animation : true } )
160
+ . on ( "mouseenter" , function ( ) {
161
+ const _this = this ;
162
+ $ ( this ) . popover ( "show" ) ;
163
+ $ ( ".popover" ) . on ( "mouseleave" , function ( ) {
164
+ $ ( _this ) . popover ( "hide" ) ;
165
+ } ) ;
166
+ } ) . on ( "mouseleave" , function ( ) {
167
+ const _this = this ;
168
+ setTimeout ( function ( ) {
169
+ if ( ! $ ( ".popover:hover" ) . length ) {
170
+ $ ( _this ) . popover ( "hide" ) ;
171
+ }
172
+ } , 50 ) ;
173
+ } ) ;
159
174
} ;
160
175
161
176
Original file line number Diff line number Diff line change @@ -142,6 +142,10 @@ optgroup {
142
142
border-color : var (--popover-border-colour );
143
143
}
144
144
145
+ .popover-content {
146
+ max-height : 90vh ;
147
+ overflow-y : auto;
148
+ }
145
149
146
150
.popover .right > .arrow {
147
151
border-right-color : var (--popover-border-colour );
You can’t perform that action at this time.
0 commit comments