summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-07-21 09:17:18 +0200
committerYorhel <git@yorhel.nl>2020-07-21 09:17:24 +0200
commit81e4ac72a1c255661bf10bbe8d01f9ec50faa4e4 (patch)
tree12f0fb2087e50b8497e8791f17e62cb6e2273d64
parent4e52a94f33964a8b7f49b2f02d82d0e3189b7bf7 (diff)
Add explanatory note to the edit summary field
Considering it's often misused or not well understood. https://vndb.org/t12882.35
-rw-r--r--data/style.css2
-rw-r--r--elm/Lib/Editsum.elm5
2 files changed, 5 insertions, 2 deletions
diff --git a/data/style.css b/data/style.css
index 7f4a59a0..99394404 100644
--- a/data/style.css
+++ b/data/style.css
@@ -211,7 +211,7 @@ span.spinner { width: 1em; height: 1em }
@keyframes spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
.textpreview > span { display: flex; justify-content: space-between; width: 100% }
-.textpreview > span > p { align-self: flex-end }
+.textpreview > span > p { align-self: flex-end; text-align: left }
.textpreview > span > p.right > * { margin-left: 10px; font-style: normal }
.textpreview textarea { width: 100%; box-sizing: border-box }
.textpreview .preview { width: 100%; box-sizing: border-box; border: 1px solid $secborder$; margin: 1px; padding: 5px; text-align: left }
diff --git a/elm/Lib/Editsum.elm b/elm/Lib/Editsum.elm
index 656441e8..20a51872 100644
--- a/elm/Lib/Editsum.elm
+++ b/elm/Lib/Editsum.elm
@@ -59,5 +59,8 @@ view model =
(if model.authmod then lockhid else [])
++
[ TP.view "" model.editsum Editsum 600 [rows 4, cols 50, minlength 2, maxlength 5000, required True]
- [ b [class "title"] [ text "Edit summary", b [class "standout"] [text " (English please!)"] ] ]
+ [ b [class "title"] [ text "Edit summary", b [class "standout"] [ text " (English please!)" ] ]
+ , br [] []
+ , text "Summarize the changes you have made, including links to source(s)."
+ ]
]