From 948505d71c87fdeb14f87bf9df7c3b8b3c799e6d Mon Sep 17 00:00:00 2001
From: shrapnelnet <shrapnelnet@protonmail.com>
Date: Tue, 31 Dec 2024 21:38:51 +0000
Subject: [PATCH] fix poor overflow fixes

---
 assets/css/post.css     | 2 +-
 assets/js/width-hack.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/assets/css/post.css b/assets/css/post.css
index 9a21292..45553dd 100644
--- a/assets/css/post.css
+++ b/assets/css/post.css
@@ -19,7 +19,7 @@ body {
     background-attachment: fixed;
 }
 
-p, h1 {
+p, h1, h2 {
     word-wrap: anywhere;
 }
 
diff --git a/assets/js/width-hack.js b/assets/js/width-hack.js
index f7090e3..4bb7566 100644
--- a/assets/js/width-hack.js
+++ b/assets/js/width-hack.js
@@ -1,6 +1,6 @@
 const resizeHeader = () => {
     const container = document.querySelector("main > .container")
-    const containerWidth = container.scrollWidth
+    const containerWidth = container.clientWidth
     const header = document.querySelector(".container.title-container")
     header.style.minWidth = `${containerWidth}px`
 }