Skip to content

Commit 6d86184

Browse files
committed
only replace this section
1 parent 5d4e306 commit 6d86184

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/base.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<body id="root" class="safe-h-screen">
5353
{% include "theme-switch.html" %}
5454

55-
<div class="flex h-[100%]">
55+
<div class="flex h-[100%]" id="portal">
5656
<div class="left-bar pl-3 hidden md:block h-[100%] shadow-md dark:shadow-xl" id="left-bar">
5757
<div class="flex flex-row">
5858
<div class="flex flex-col justify-center">
@@ -77,7 +77,7 @@
7777
</div>
7878

7979
<section class="section">
80-
<div class="mt-5 mx-5" id="portal">
80+
<div class="mt-5 mx-5">
8181
<div class="flex flex-col gap-5 border-b-2 border-lightborder dark:border-darkborder pb-2 mb-3">
8282
<div class="flex flex-col-reverse gap-5 md:flex-row justify-between">
8383
<div>{% block header %}{% endblock %}</div>
@@ -136,7 +136,7 @@
136136

137137
const doc = parser.parseFromString(await fetched.text(), "text/html");
138138

139-
const content = doc.getElementById("root");
139+
const content = doc.getElementById("portal");
140140

141141
if(pre) preFetched[link] = content;
142142
return content;
@@ -145,7 +145,7 @@
145145
const buttonInterceptor = async (ev) => {
146146
ev.preventDefault();
147147

148-
const portal = document.getElementById("root");
148+
const portal = document.getElementById("portal");
149149
const potentialFetch = preFetched[ev.target.href];
150150

151151
if(potentialFetch) {

0 commit comments

Comments
 (0)