From db2c9fe96aa1b62058eadcb004bd58fc3047f847 Mon Sep 17 00:00:00 2001
From: Graham Christensen <Graham Christensen>
Date: Thu, 1 Apr 2021 02:00:36 +0000
Subject: [PATCH] layout.tt: make the header constrained to the center

---
 src/root/layout.tt | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/src/root/layout.tt b/src/root/layout.tt
index 4109585e..e5331ddd 100644
--- a/src/root/layout.tt
+++ b/src/root/layout.tt
@@ -47,18 +47,20 @@
   <body>
 
     <nav class="navbar navbar-expand-md navbar-light bg-light">
-      <a class="navbar-brand" href="[% c.uri_for(c.controller('Root').action_for('index')) %]">
-        [% IF logo == "" %]
-          Hydra
-        [% ELSE %]
-          <img src="[% c.uri_for(logo) %]" alt="Hydra Logo" class="logo" />
-        [% END %]
-      </a>
-      <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarSupportedContent">
-        <span class="navbar-toggler-icon"></span>
-      </button>
-      <div class="collapse navbar-collapse" id="navbarSupportedContent">
-        [% PROCESS topbar.tt %]
+      <div class="container">
+        <a class="navbar-brand" href="[% c.uri_for(c.controller('Root').action_for('index')) %]">
+          [% IF logo == "" %]
+            Hydra
+          [% ELSE %]
+            <img src="[% c.uri_for(logo) %]" alt="Hydra Logo" class="logo" />
+          [% END %]
+        </a>
+        <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarSupportedContent">
+          <span class="navbar-toggler-icon"></span>
+        </button>
+        <div class="collapse navbar-collapse" id="navbarSupportedContent">
+          [% PROCESS topbar.tt %]
+        </div>
       </div>
     </nav>