stupid scroll

This commit is contained in:
Bel LaPointe
2021-02-25 16:22:40 -06:00
parent 1eb8fa7223
commit 47d6c37819
3 changed files with 31 additions and 15 deletions

View File

@@ -26,11 +26,13 @@ func editFile(p filetree.Path) string {
}
b, _ := ioutil.ReadFile(p.Local)
return fmt.Sprintf(`
<form action="/submit/%s" method="post" style="width:100%%; height: 90%%">
<table style="width:100%%; height: 90%%">
<textarea name="content" style="width:100%%; min-height:90%%; cursor:crosshair;">%s</textarea>
</table>
<button type="submit">Submit</button>
</form>
<div class="form">
<form action="/submit/%s" method="post">
<table>
<textarea name="content" style="cursor:crosshair;">%s</textarea>
</table>
<button type="submit">Submit</button>
</form>
</div>
`, href, b)
}