From 683de5193680d4c8d9df2b273daa17b4c4f847d7 Mon Sep 17 00:00:00 2001
From: KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>
Date: Fri, 20 Aug 2021 14:51:43 -0300
Subject: fix a couple problems

---
 static/top.html | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'static/top.html')

diff --git a/static/top.html b/static/top.html
index 94abad7..0e265d8 100644
--- a/static/top.html
+++ b/static/top.html
@@ -1,13 +1,13 @@
 {{ define "top" }}
-<div style="margin: 0 auto; width: 700px; margin-bottom: 100px;">
+<div style="margin: 0 auto; width: 700px;">
   <h1 style="text-align: center;">/{{ .Board.Name }}/ - {{ .Board.PrefName }}</h1>
   <p style="text-align: center;">{{ .Board.Summary }}</p>
   {{ $len := len .Posts }}
   {{ if eq $len 0 }}
   {{ if .Board.InReplyTo }}
-  <h3 id="newpostbtn"  state="0" style="display: none;"><a href="javascript:startNewPost()">[Post a Reply]</a></h3>
+  <h3 id="newpostbtn"  state="0" style="display: none; margin-bottom:100px;"><a href="javascript:startNewPost()">[Post a Reply]</a></h3>
   {{ else  }}
-  <h3 id="newpostbtn"  state="0" style="display: none;"><a href="javascript:startNewPost()">[Start a New Thread]</a></h3>
+  <h3 id="newpostbtn"  state="0" style="display: none; margin-bottom:100px;"><a href="javascript:startNewPost()">[Start a New Thread]</a></h3>
   {{ end }} <!-- end if inreplyto-->
   <div id="newpost">
     <form onsubmit="sessionStorage.setItem('element-closed-reply', true)" id="new-post" action="/post" method="post" enctype="multipart/form-data">
@@ -16,7 +16,7 @@
           <tr>
             <td><label for="name">Name:</label></td>
             <td><input type="text" id="name" name="name" placeholder="Anonymous" maxlength="100">
-                <a onclick="stopNewPost()" style="float: right;">[X]</a>
+                <a id="stopTablePost" onclick="stopNewPost()">[X]</a>
             </td>
           </tr>
           <tr>
@@ -61,9 +61,9 @@
 
   {{ if eq (index .Posts 0).Type "Note" }}
   {{ if .Board.InReplyTo }}
-  <h3 id="newpostbtn"  state="0" style="text-align: center; margin-top: 80px; display: none;"><a href="javascript:startNewPost()">[Post a Reply]</a></h3>
+  <h3 id="newpostbtn"  state="0" style="text-align: center; margin-top: 80px; display: none; margin-bottom:100px;"><a href="javascript:startNewPost()">[Post a Reply]</a></h3>
   {{ else  }}
-  <h3 id="newpostbtn"  state="0" style="text-align: center; margin-top: 80px; display: none;"><a href="javascript:startNewPost()">[Start a New Thread]</a></h3>
+  <h3 id="newpostbtn"  state="0" style="text-align: center; margin-top: 80px; display: none; margin-bottom:100px;"><a href="javascript:startNewPost()">[Start a New Thread]</a></h3>
   {{ end }} <!-- end if inreplyto-->
   {{ $len := len .Posts }}
   <div id="newpost">
@@ -73,7 +73,7 @@
           <tr>
             <td><label for="name">Name:</label></td>
             <td><input type="text" id="name" name="name" placeholder="Anonymous" maxlength="100">
-                <a onclick="stopNewPost()" style="float: right;">[X]</a>
+                <a id="stopTablePost" onclick="stopNewPost()">[X]</a>
           </tr>
           <tr>
             <td><label for="options">Options:</label></td>
-- 
cgit v1.2.3