1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-06 10:00:26 +00:00

Improve appearance of edit message field

This commit is contained in:
handlerug 2021-06-14 14:48:53 +07:00
parent 0ffc1a05fe
commit bf4a15b61d
No known key found for this signature in database
GPG Key ID: 38009F0605051491
3 changed files with 10 additions and 8 deletions

View File

@ -110,8 +110,10 @@ textarea {font-size:16px; font-family: 'PT Sans', 'Liberation Sans', sans-serif;
.edit { min-height: 80vh; }
.edit__title { margin-top: 0; }
.edit__preview { border: 2px dashed #ddd; }
.edit-form {height:70vh;}
.edit-form textarea {width:100%;height:calc(100% - 6rem);}
.edit-form { height: calc(100vh - 12rem); }
.edit-form__textarea {width:100%;height:calc(100% - 8rem);}
.edit-form label { font-style: italic; }
.edit-form__message { width: 100%; margin: 0.25em 0; }
.edit-form__save { font-weight: bold; }
.edit-toolbar__buttons, .edit-toolbar__ad { margin: .5rem; }

View File

@ -78,8 +78,8 @@
action="/upload-text/{%s hyphaName %}">
<textarea name="text" class="edit-form__textarea" autofocus>{%s textAreaFill %}</textarea>
<br/><br/>
<label for="text">Edit description:</label>
<input id="text" type="text" name="message" class="edit-form__message">
<label for="text">Describe your changes:</label><br>
<input id="text" type="text" name="message" class="edit-form__message" placeholder="(optional)">
<br/><br/>
<input type="submit" name="action" value="Save" class="edit-form__save"/>
<input type="submit" name="action" value="Preview" class="edit-form__preview">

View File

@ -205,13 +205,13 @@ func StreamEditHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, text
//line views/mutators.qtpl:79
qw422016.N().S(`</textarea>
<br/><br/>
<label for="text">Edit description:</label>
<input id="text" type="text" name="message" class="edit-form__message">
<label for="text">Describe your changes:</label><br>
<input id="text" type="text" name="message" class="edit-form__message" placeholder="(optional)">
<br/><br/>
<input type="submit" name="action" value="Save" class="edit-form__save"/>
<input type="submit" name="action" value="Preview" class="edit-form__preview">
<a href="/hypha/`)
//line views/mutators.qtpl:83
//line views/mutators.qtpl:86
qw422016.E().S(hyphaName)
//line views/mutators.qtpl:86
qw422016.N().S(`" class="edit-form__cancel">Cancel</a>
@ -301,7 +301,7 @@ func StreamPreviewHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, t
<input type="submit" name="action" value="Save" class="edit-form__save"/>
<input type="submit" name="action" value="Preview" class="edit-form__preview">
<a href="/hypha/`)
//line views/mutators.qtpl:103
//line views/mutators.qtpl:109
qw422016.E().S(hyphaName)
//line views/mutators.qtpl:109
qw422016.N().S(`" class="edit-form__cancel">Cancel</a>