From 96df3bfc30a4e36d3e9831802fa0e7336679836b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 20 Apr 2026 21:55:11 +0200 Subject: fix: resolve mobile viewport overflow on article pages Move max-w-7xl from grid to article element so CSS grid computes column track sizes against the actual container width. Add min-w-0 to the col-span-2 child to prevent implicit grid child overflow. Simplify .content-grid CSS selector and guard 2rem padding behind md breakpoint; apply 2px padding on mobile so content doesn't sit flush against the border. Co-Authored-By: Claude Haiku 4.5 --- themes/danix-xyz-hacker/layouts/_default/single.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'themes/danix-xyz-hacker/layouts/_default/single.html') diff --git a/themes/danix-xyz-hacker/layouts/_default/single.html b/themes/danix-xyz-hacker/layouts/_default/single.html index 62e4a64..7a1a069 100644 --- a/themes/danix-xyz-hacker/layouts/_default/single.html +++ b/themes/danix-xyz-hacker/layouts/_default/single.html @@ -1,8 +1,8 @@ {{ define "main" }} -
-
+
+
-
+
{{ if eq .Section "articles" }} {{ partial "article-nav.html" (dict "page" . "variant" "top") }} -- cgit v1.2.3