1
0
mirror of https://github.com/minio/docs.git synced 2025-07-27 08:41:57 +03:00

Add responsive wrappers for tables (#533)

* Add responsive wrappers for tables

* Add missing styles
This commit is contained in:
Rushan
2022-08-23 23:49:05 +04:00
committed by GitHub
parent 01a5552631
commit 1bb0e097b7
4 changed files with 46 additions and 1 deletions

View File

@ -334,4 +334,20 @@ window.addEventListener("DOMContentLoaded", (event) => {
}
}
})();
// --------------------------------------------------
// Responsive tables
// --------------------------------------------------
(function () {
const tableEls = document.querySelectorAll("table");
if(tableEls.length > 0) {
tableEls.forEach((item) => {
var tableWrapper = document.createElement("div");
tableWrapper.classList.add("table-responsive");
item.insertAdjacentElement("beforebegin", tableWrapper);
tableWrapper.appendChild(item);
});
}
})();
});