File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
controllers/elements/datatables Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,10 @@ export default class extends DatatablesController {
45
45
//Hide/Unhide panel with the selection tools
46
46
if ( count > 0 ) {
47
47
selectPanel . classList . remove ( 'd-none' ) ;
48
+ selectPanel . classList . add ( 'sticky-select-bar' ) ;
48
49
} else {
49
50
selectPanel . classList . add ( 'd-none' ) ;
51
+ selectPanel . classList . remove ( 'sticky-select-bar' ) ;
50
52
}
51
53
52
54
//Update selection count text
Original file line number Diff line number Diff line change 17
17
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18
18
*/
19
19
20
+ /****************************************
21
+ * Action bar
22
+ ****************************************/
23
+
24
+ .sticky-select-bar {
25
+ position : sticky;
26
+ top : 120px ;
27
+ z-index : 3000 ; /* Ensure the bar is above other content */
28
+ }
29
+
20
30
/****************************************
21
31
* Tables
22
32
****************************************/
@@ -109,4 +119,4 @@ Classes for Datatables export
109
119
# export-messageTop ,
110
120
.export-helper {
111
121
display : none;
112
- }
122
+ }
Original file line number Diff line number Diff line change 29
29
30
30
<input type =" hidden" name =" ids" {{ stimulus_target(' elements/datatables/parts' , ' selectIDs' ) }} value =" " >
31
31
32
- <div class =" d-none mb-2" {{ stimulus_target(' elements/datatables/parts' , ' selectPanel' ) }}>
32
+ <div class =" d-none mb-2 bg-body-secondary shadow-sm border border-secondary rounded mx-2 p-2 " {{ stimulus_target(' elements/datatables/parts' , ' selectPanel' ) }}>
33
33
{# <span id="select_count"></span> #}
34
34
35
35
<div class =" input-group" >
95
95
</div >
96
96
</form >
97
97
98
- {% endmacro %}
98
+ {% endmacro %}
You can’t perform that action at this time.
0 commit comments