appview: pages: fix misaligned padding and grid gaps in base #329

merged
opened by nel.pet targeting master

I noticed there is some minor misalignment in the gaps and padding between the header, main content and footer. This leads to a few pixel misalignment between the main content and everything else in most views but becomes very obvious in the new commit view were the main content ends up hugging the viewport edge leading to quite noticeable gap.

Changed files
+5 -5
appview
pages
templates
layouts
+5 -5
appview/pages/templates/layouts/base.html
···
</head>
<body class="bg-slate-100 dark:bg-gray-900 dark:text-white transition-colors duration-200">
{{ block "topbarLayout" . }}
-
<div class="px-1 grid grid-cols-1 md:grid-cols-12">
+
<div class="px-1 grid grid-cols-1 md:grid-cols-12 gap-2">
<div class="{{ layoutSide }}">
{{ block "topbarLeft" . }} {{ end }}
</div>
···
<div class="flex flex-col min-h-screen">
{{ block "contentLayout" . }}
-
<div class="grid grid-cols-1 md:grid-cols-12 gap-2">
+
<div class="px-1 grid grid-cols-1 md:grid-cols-12 gap-2">
<div class="{{ layoutSide }}">
{{ block "contentLeft" . }} {{ end }}
</div>
-
<main class="px-1 {{ layoutCenter }}">
+
<main class="{{ layoutCenter }}">
{{ block "content" . }}{{ end }}
</main>
<div class="{{ layoutSide }}">
···
{{ end }}
{{ block "contentAfterLayout" . }}
-
<div class="grid grid-cols-1 md:grid-cols-12 gap-2">
+
<div class="px-1 grid grid-cols-1 md:grid-cols-12 gap-2">
<div class="{{ layoutSide }}">
{{ block "contentAfterLeft" . }} {{ end }}
</div>
···
</div>
{{ block "footerLayout" . }}
-
<div class="px-1 grid grid-cols-1 md:grid-cols-12">
+
<div class="px-1 grid grid-cols-1 md:grid-cols-12 gap-2">
<div class="{{ layoutSide }}">
{{ block "footerLeft" . }} {{ end }}
</div>