mirror of
https://github.com/v1k45/pastepass.git
synced 2026-01-05 04:56:16 +00:00
Minor style fixes
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 'Submit'\" 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 'Submit'\" 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
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user