Add BumbleberryOverrideHelper for modern feature support and update main.js for responsive column visibility although not needed with override. Fixes #10

This commit is contained in:
2026-02-03 06:43:32 +00:00
parent 5e6f962c95
commit c2d1bdd017
5 changed files with 361 additions and 163 deletions
+14
View File
@@ -166,6 +166,20 @@
if (!window.initNodeFunctions) {
window.initNodeFunctions = [];
}
// this code is used to hide columns with class "column-set" on small screens
// but is not really necessary, was fixed with bumbleberry_overridehelp.rb
function handleColumnSetVisibility() {
var isMobile = window.innerWidth <= 679;
var elements = document.querySelectorAll('.table-th.column-set, th.column-set');
elements.forEach(function(el) {
el.style.display = isMobile ? 'none' : '';
});
}
window.initNodeFunctions.push(handleColumnSetVisibility);
window.addEventListener('resize', handleColumnSetVisibility);
window.initNodeFunctions.push(function(node) {
forEachElement('.number-field,.email-field,.text-field,.password-field,.search-field', function(field) {
var input = field.querySelector('input');