Minor style fixes

This commit is contained in:
Vikas
2024-06-02 18:36:55 +05:30
parent e85f5f7923
commit bc11d72720
4 changed files with 7 additions and 7 deletions

View File

@@ -13,9 +13,9 @@ templ Index() {
>
</textarea>
<div style="display: flex; align-items: end; justify-content: space-between;">
<div style="width: 33.33%">
<div style="min-width: 33.33%">
<label for="expiration">Expires In</label>
<select id="expiration" expired name="expiration" aria-label="Expires In">
<select id="expiration" name="expiration" aria-label="Expires In">
<option value="1h" selected>1 Hour</option>
<option value="1d">1 Day</option>
<option value="1w">1 Week</option>
@@ -23,7 +23,7 @@ templ Index() {
<option value="4w">4 weeks</option>
</select>
</div>
<div style="width: 33.33%">
<div style="min-width: 33.33%">
<button type="submit">Paste</button>
</div>
</div>

View File

@@ -29,7 +29,7 @@ func Index() templ.Component {
templ_7745c5c3_Buffer = templ.GetBuffer()
defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form method=\"post\"><textarea name=\"text\" placeholder=\"Paste your secret here, select expiration time and click &#39;Submit&#39;\" aria-label=\"Paste your secret here\" rows=\"10\" required autofocus></textarea><div style=\"display: flex; align-items: end; justify-content: space-between;\"><div style=\"width: 33.33%\"><label for=\"expiration\">Expires In</label> <select id=\"expiration\" expired name=\"expiration\" aria-label=\"Expires In\"><option value=\"1h\" selected>1 Hour</option> <option value=\"1d\">1 Day</option> <option value=\"1w\">1 Week</option> <option value=\"2w\">2 weeks</option> <option value=\"4w\">4 weeks</option></select></div><div style=\"width: 33.33%\"><button type=\"submit\">Paste</button></div></div></form>")
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form method=\"post\"><textarea name=\"text\" placeholder=\"Paste your secret here, select expiration time and click &#39;Submit&#39;\" aria-label=\"Paste your secret here\" rows=\"10\" required autofocus></textarea><div style=\"display: flex; align-items: end; justify-content: space-between;\"><div style=\"min-width: 33.33%\"><label for=\"expiration\">Expires In</label> <select id=\"expiration\" name=\"expiration\" aria-label=\"Expires In\"><option value=\"1h\" selected>1 Hour</option> <option value=\"1d\">1 Day</option> <option value=\"1w\">1 Week</option> <option value=\"2w\">2 weeks</option> <option value=\"4w\">4 weeks</option></select></div><div style=\"min-width: 33.33%\"><button type=\"submit\">Paste</button></div></div></form>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}

View File

@@ -11,8 +11,8 @@ templ View() {
</small>
</p>
</hgroup>
<form style="width: 33.33%;" method="post">
<button type="submit">Show Paste</button>
<form method="post">
<button type="submit" style="width: auto;">Show Paste</button>
</form>
</div>
}

View File

@@ -29,7 +29,7 @@ func View() templ.Component {
templ_7745c5c3_Buffer = templ.GetBuffer()
defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div style=\"padding-bottom: 5rem;\"><hgroup><h3>View Paste</h3><p><small style=\"color: #8891A4;\">You can only view this paste once. Make sure to copy it before you close this page.</small></p></hgroup><form style=\"width: 33.33%;\" method=\"post\"><button type=\"submit\">Show Paste</button></form></div>")
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div style=\"padding-bottom: 5rem;\"><hgroup><h3>View Paste</h3><p><small style=\"color: #8891A4;\">You can only view this paste once. Make sure to copy it before you close this page.</small></p></hgroup><form method=\"post\"><button type=\"submit\" style=\"width: auto;\">Show Paste</button></form></div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}