Fossil SCM

Minor /wikiedit layout improvements and removed the probably-obvious '?' button from the auto-refresh checkbox.

stephan 2020-08-29 14:22 trunk
Commit f83c4fa41d920293a714d909ce367aed941f1f475661ddda016d120007dbe748
1 file changed +9 -10
+9 -10
--- src/wiki.c
+++ src/wiki.c
@@ -1161,11 +1161,12 @@
11611161
CX("<div id='wikiedit-tab-content' "
11621162
"data-tab-parent='wikiedit-tabs' "
11631163
"data-tab-label='Editor' "
11641164
"class='hidden'"
11651165
">");
1166
- CX("<div class='flex-container flex-row child-gap-small'>");
1166
+ CX("<div class='"
1167
+ "wikiedit-options flex-container flex-row child-gap-small'>");
11671168
CX("<div class='input-with-label'>"
11681169
"<label>Mime type</label>");
11691170
mimetype_option_menu(0);
11701171
CX("</div>");
11711172
style_select_list_int("select-font-size",
@@ -1174,18 +1175,18 @@
11741175
100,
11751176
"100%", 100, "125%", 125,
11761177
"150%", 150, "175%", 175,
11771178
"200%", 200, NULL);
11781179
CX("<div class='input-with-label'>"
1180
+ /*will get moved around dynamically*/
11791181
"<button class='wikiedit-save'>"
11801182
"Save</button>"
1181
- "</div>" /*will get moved around dynamically*/);
1182
- CX("<div class='input-with-label'>"
11831183
"<button class='wikiedit-save-close'>"
11841184
"Save &amp; Close</button>"
11851185
"<div class='help-buttonlet'>"
1186
- "Save edits to this page and returns to the wiki page viewer."
1186
+ "Save edits to this page and optionally return "
1187
+ "to the wiki page viewer."
11871188
"</div>"
11881189
"</div>" /*will get moved around dynamically*/);
11891190
CX("<span class='save-button-slot'></span>");
11901191
11911192
CX("<div class='input-with-label'>"
@@ -1229,14 +1230,10 @@
12291230
/* Toggle auto-update of preview when the Preview tab is selected. */
12301231
CX("<div class='input-with-label'>"
12311232
"<input type='checkbox' value='1' "
12321233
"id='cb-preview-autorefresh' checked>"
12331234
"<label for='cb-preview-autorefresh'>Auto-refresh?</label>"
1234
- "<div class='help-buttonlet'>"
1235
- "If on, the preview will automatically "
1236
- "refresh (if needed) when this tab is selected."
1237
- "</div>"
12381235
"</div>");
12391236
CX("<span class='save-button-slot'></span>");
12401237
CX("</div>"/*.wikiedit-options*/);
12411238
CX("<div id='wikiedit-tab-preview-wrapper'></div>");
12421239
CX("</div>"/*#wikiedit-tab-preview*/);
@@ -1251,12 +1248,14 @@
12511248
">");
12521249
12531250
CX("<div class='wikiedit-options flex-container "
12541251
"flex-row child-gap-small' "
12551252
"id='wikiedit-tab-diff-buttons'>");
1256
- CX("<button class='sbs'>Side-by-side</button>"
1257
- "<button class='unified'>Unified</button>");
1253
+ CX("<div class='input-with-label'>"
1254
+ "<button class='sbs'>Side-by-side</button>"
1255
+ "<button class='unified'>Unified</button>"
1256
+ "</div>");
12581257
CX("<span class='save-button-slot'></span>");
12591258
CX("</div>");
12601259
CX("<div id='wikiedit-tab-diff-wrapper'>"
12611260
"Diffs will be shown here."
12621261
"</div>");
12631262
--- src/wiki.c
+++ src/wiki.c
@@ -1161,11 +1161,12 @@
1161 CX("<div id='wikiedit-tab-content' "
1162 "data-tab-parent='wikiedit-tabs' "
1163 "data-tab-label='Editor' "
1164 "class='hidden'"
1165 ">");
1166 CX("<div class='flex-container flex-row child-gap-small'>");
 
1167 CX("<div class='input-with-label'>"
1168 "<label>Mime type</label>");
1169 mimetype_option_menu(0);
1170 CX("</div>");
1171 style_select_list_int("select-font-size",
@@ -1174,18 +1175,18 @@
1174 100,
1175 "100%", 100, "125%", 125,
1176 "150%", 150, "175%", 175,
1177 "200%", 200, NULL);
1178 CX("<div class='input-with-label'>"
 
1179 "<button class='wikiedit-save'>"
1180 "Save</button>"
1181 "</div>" /*will get moved around dynamically*/);
1182 CX("<div class='input-with-label'>"
1183 "<button class='wikiedit-save-close'>"
1184 "Save &amp; Close</button>"
1185 "<div class='help-buttonlet'>"
1186 "Save edits to this page and returns to the wiki page viewer."
 
1187 "</div>"
1188 "</div>" /*will get moved around dynamically*/);
1189 CX("<span class='save-button-slot'></span>");
1190
1191 CX("<div class='input-with-label'>"
@@ -1229,14 +1230,10 @@
1229 /* Toggle auto-update of preview when the Preview tab is selected. */
1230 CX("<div class='input-with-label'>"
1231 "<input type='checkbox' value='1' "
1232 "id='cb-preview-autorefresh' checked>"
1233 "<label for='cb-preview-autorefresh'>Auto-refresh?</label>"
1234 "<div class='help-buttonlet'>"
1235 "If on, the preview will automatically "
1236 "refresh (if needed) when this tab is selected."
1237 "</div>"
1238 "</div>");
1239 CX("<span class='save-button-slot'></span>");
1240 CX("</div>"/*.wikiedit-options*/);
1241 CX("<div id='wikiedit-tab-preview-wrapper'></div>");
1242 CX("</div>"/*#wikiedit-tab-preview*/);
@@ -1251,12 +1248,14 @@
1251 ">");
1252
1253 CX("<div class='wikiedit-options flex-container "
1254 "flex-row child-gap-small' "
1255 "id='wikiedit-tab-diff-buttons'>");
1256 CX("<button class='sbs'>Side-by-side</button>"
1257 "<button class='unified'>Unified</button>");
 
 
1258 CX("<span class='save-button-slot'></span>");
1259 CX("</div>");
1260 CX("<div id='wikiedit-tab-diff-wrapper'>"
1261 "Diffs will be shown here."
1262 "</div>");
1263
--- src/wiki.c
+++ src/wiki.c
@@ -1161,11 +1161,12 @@
1161 CX("<div id='wikiedit-tab-content' "
1162 "data-tab-parent='wikiedit-tabs' "
1163 "data-tab-label='Editor' "
1164 "class='hidden'"
1165 ">");
1166 CX("<div class='"
1167 "wikiedit-options flex-container flex-row child-gap-small'>");
1168 CX("<div class='input-with-label'>"
1169 "<label>Mime type</label>");
1170 mimetype_option_menu(0);
1171 CX("</div>");
1172 style_select_list_int("select-font-size",
@@ -1174,18 +1175,18 @@
1175 100,
1176 "100%", 100, "125%", 125,
1177 "150%", 150, "175%", 175,
1178 "200%", 200, NULL);
1179 CX("<div class='input-with-label'>"
1180 /*will get moved around dynamically*/
1181 "<button class='wikiedit-save'>"
1182 "Save</button>"
 
 
1183 "<button class='wikiedit-save-close'>"
1184 "Save &amp; Close</button>"
1185 "<div class='help-buttonlet'>"
1186 "Save edits to this page and optionally return "
1187 "to the wiki page viewer."
1188 "</div>"
1189 "</div>" /*will get moved around dynamically*/);
1190 CX("<span class='save-button-slot'></span>");
1191
1192 CX("<div class='input-with-label'>"
@@ -1229,14 +1230,10 @@
1230 /* Toggle auto-update of preview when the Preview tab is selected. */
1231 CX("<div class='input-with-label'>"
1232 "<input type='checkbox' value='1' "
1233 "id='cb-preview-autorefresh' checked>"
1234 "<label for='cb-preview-autorefresh'>Auto-refresh?</label>"
 
 
 
 
1235 "</div>");
1236 CX("<span class='save-button-slot'></span>");
1237 CX("</div>"/*.wikiedit-options*/);
1238 CX("<div id='wikiedit-tab-preview-wrapper'></div>");
1239 CX("</div>"/*#wikiedit-tab-preview*/);
@@ -1251,12 +1248,14 @@
1248 ">");
1249
1250 CX("<div class='wikiedit-options flex-container "
1251 "flex-row child-gap-small' "
1252 "id='wikiedit-tab-diff-buttons'>");
1253 CX("<div class='input-with-label'>"
1254 "<button class='sbs'>Side-by-side</button>"
1255 "<button class='unified'>Unified</button>"
1256 "</div>");
1257 CX("<span class='save-button-slot'></span>");
1258 CX("</div>");
1259 CX("<div id='wikiedit-tab-diff-wrapper'>"
1260 "Diffs will be shown here."
1261 "</div>");
1262

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button