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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-gnix",
3
- "version": "5.0.6",
3
+ "version": "5.0.7",
4
4
  "author": "Efterklang <gaojiaxing0220@gmail.com>",
5
5
  "license": "MIT",
6
6
  "description": "Second generation of Hexo theme Icarus, now with Catppuccin flavor and night mode support.",
@@ -973,6 +973,7 @@ body {
973
973
  font-size: 0.85em;
974
974
  font-family: var(--font-mono);
975
975
  padding: 0 0.25em;
976
+ margin: 0 0.2em;
976
977
  background-color: var(--base);
977
978
  color: var(--subtext1);
978
979
  border: 1px solid var(--surface0);
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, {