hexo-theme-gnix 5.0.6 → 5.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/source/css/default.css +1 -0
- package/source/js/main.js +3 -0
package/package.json
CHANGED
package/source/css/default.css
CHANGED
package/source/js/main.js
CHANGED
|
@@ -223,6 +223,9 @@ function handleNavbarClick(e) {
|
|
|
223
223
|
|
|
224
224
|
function tableWrapFix() {
|
|
225
225
|
document.querySelectorAll(".content table").forEach((table) => {
|
|
226
|
+
if (table.hasAttribute("data-nowrap") || table.parentElement.classList.contains('table-wrapper')) {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
226
229
|
// if width exceeds container, wrap it
|
|
227
230
|
const wrapper = document.createElement("div");
|
|
228
231
|
Object.assign(wrapper.style, {
|