File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ function UIContextMenu(options){
501
501
}
502
502
// divider
503
503
else if ( options . items [ i ] . is_divider || options . items [ i ] === '-' )
504
- h += `<li class="context-menu-divider"><hr></li>` ;
504
+ h += `<li class="context-menu-item context-menu- divider"><hr></li>` ;
505
505
}
506
506
h += `</div>`
507
507
$ ( 'body' ) . append ( h )
Original file line number Diff line number Diff line change @@ -1561,13 +1561,17 @@ span.header-sort-icon img {
1561
1561
}
1562
1562
1563
1563
.context-menu .context-menu-divider > hr {
1564
- margin-top : 5 px ;
1565
- margin-bottom : 5 px ;
1564
+ margin-top : 0 ;
1565
+ margin-bottom : 0 ;
1566
1566
border-bottom : none;
1567
1567
border-top : 1px solid # 00000033 ;
1568
1568
}
1569
+ .context-menu .context-menu-divider {
1570
+ padding-top : 5px ;
1571
+ padding-bottom : 5px ;
1572
+ }
1569
1573
1570
- .context-menu .context-menu-item {
1574
+ .context-menu .context-menu-item : not (. context-menu-divider ) {
1571
1575
padding : 5px ;
1572
1576
list-style-type : none;
1573
1577
user-select : none;
@@ -1623,7 +1627,7 @@ span.header-sort-icon img {
1623
1627
background-color : # dfdfdf ;
1624
1628
}
1625
1629
1626
- .context-menu .context-menu-item-active {
1630
+ .context-menu .context-menu-item-active : not (. context-menu-divider ) {
1627
1631
background-color : var (--select-color );
1628
1632
color : white;
1629
1633
}
@@ -1632,7 +1636,6 @@ span.header-sort-icon img {
1632
1636
background-color : rgb (199 , 205 , 212 );
1633
1637
color : initial;
1634
1638
border-radius : 4px ;
1635
-
1636
1639
}
1637
1640
1638
1641
.context-menu .context-menu-item-disabled , .context-menu .context-menu-item-disabled : hover {
You can’t perform that action at this time.
0 commit comments