Fossil SCM
Minor /wikiedit layout improvements and removed the probably-obvious '?' button from the auto-refresh checkbox.
Commit
f83c4fa41d920293a714d909ce367aed941f1f475661ddda016d120007dbe748
Parent
88703f001d7b0cb…
1 file changed
+9
-10
+9
-10
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -1161,11 +1161,12 @@ | ||
| 1161 | 1161 | CX("<div id='wikiedit-tab-content' " |
| 1162 | 1162 | "data-tab-parent='wikiedit-tabs' " |
| 1163 | 1163 | "data-tab-label='Editor' " |
| 1164 | 1164 | "class='hidden'" |
| 1165 | 1165 | ">"); |
| 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'>"); | |
| 1167 | 1168 | CX("<div class='input-with-label'>" |
| 1168 | 1169 | "<label>Mime type</label>"); |
| 1169 | 1170 | mimetype_option_menu(0); |
| 1170 | 1171 | CX("</div>"); |
| 1171 | 1172 | style_select_list_int("select-font-size", |
| @@ -1174,18 +1175,18 @@ | ||
| 1174 | 1175 | 100, |
| 1175 | 1176 | "100%", 100, "125%", 125, |
| 1176 | 1177 | "150%", 150, "175%", 175, |
| 1177 | 1178 | "200%", 200, NULL); |
| 1178 | 1179 | CX("<div class='input-with-label'>" |
| 1180 | + /*will get moved around dynamically*/ | |
| 1179 | 1181 | "<button class='wikiedit-save'>" |
| 1180 | 1182 | "Save</button>" |
| 1181 | - "</div>" /*will get moved around dynamically*/); | |
| 1182 | - CX("<div class='input-with-label'>" | |
| 1183 | 1183 | "<button class='wikiedit-save-close'>" |
| 1184 | 1184 | "Save & Close</button>" |
| 1185 | 1185 | "<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." | |
| 1187 | 1188 | "</div>" |
| 1188 | 1189 | "</div>" /*will get moved around dynamically*/); |
| 1189 | 1190 | CX("<span class='save-button-slot'></span>"); |
| 1190 | 1191 | |
| 1191 | 1192 | CX("<div class='input-with-label'>" |
| @@ -1229,14 +1230,10 @@ | ||
| 1229 | 1230 | /* Toggle auto-update of preview when the Preview tab is selected. */ |
| 1230 | 1231 | CX("<div class='input-with-label'>" |
| 1231 | 1232 | "<input type='checkbox' value='1' " |
| 1232 | 1233 | "id='cb-preview-autorefresh' checked>" |
| 1233 | 1234 | "<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 | 1235 | "</div>"); |
| 1239 | 1236 | CX("<span class='save-button-slot'></span>"); |
| 1240 | 1237 | CX("</div>"/*.wikiedit-options*/); |
| 1241 | 1238 | CX("<div id='wikiedit-tab-preview-wrapper'></div>"); |
| 1242 | 1239 | CX("</div>"/*#wikiedit-tab-preview*/); |
| @@ -1251,12 +1248,14 @@ | ||
| 1251 | 1248 | ">"); |
| 1252 | 1249 | |
| 1253 | 1250 | CX("<div class='wikiedit-options flex-container " |
| 1254 | 1251 | "flex-row child-gap-small' " |
| 1255 | 1252 | "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>"); | |
| 1258 | 1257 | CX("<span class='save-button-slot'></span>"); |
| 1259 | 1258 | CX("</div>"); |
| 1260 | 1259 | CX("<div id='wikiedit-tab-diff-wrapper'>" |
| 1261 | 1260 | "Diffs will be shown here." |
| 1262 | 1261 | "</div>"); |
| 1263 | 1262 |
| --- 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 & 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 & 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 |