Unified · Split
| @@ -6,13 +6,13 @@ app.templates.settingsPage = (settings) -> """ · 5 unmodified lines | ||
| 6 | 6 | |
| 7 | 7 | <div class="_settings-inputs"> |
| 8 | 8 | <label class="_settings-label"> |
| 9 | − <input type="checkbox" name="dark" value="1"#{if settings.dark then ' checked' else ''}>Enable dark theme | |
| 9 | + <input type="checkbox" form="settings" name="dark" value="1"#{if settings.dark then ' checked' else ''}>Enable dark theme | |
| 10 | 10 | </label> |
| 11 | 11 | <label class="_settings-label _setting-max-width"> |
| 12 | − <input type="checkbox" name="layout" value="_max-width"#{if settings['_max-width'] then ' checked' else ''}>Enable fixed-width layout | |
| 12 | + <input type="checkbox" form="settings" name="layout" value="_max-width"#{if settings['_max-width'] then ' checked' else ''}>Enable fixed-width layout | |
| 13 | 13 | </label> |
| 14 | 14 | <label class="_settings-label _hide-on-mobile"> |
| 15 | − <input type="checkbox" name="layout" value="_sidebar-hidden"#{if settings['_sidebar-hidden'] then ' checked' else ''}>Automatically hide and show the sidebar | |
| 15 | + <input type="checkbox" form="settings" name="layout" value="_sidebar-hidden"#{if settings['_sidebar-hidden'] then ' checked' else ''}>Automatically hide and show the sidebar | |
| 16 | 16 | <small>Tip: drag the edge of the sidebar to resize it.</small> |
| 17 | 17 | </label> |
| 18 | 18 | </div> |
| @@ -23,10 +23,10 @@ app.templates.settingsPage = (settings) -> """ · 4 unmodified lines | ||
| 23 | 23 | |
| 24 | 24 | <div class="_settings-inputs"> |
| 25 | 25 | <label class="_settings-label"> |
| 26 | − <input type="checkbox" name="smoothScroll" value="1"#{if settings.smoothScroll then ' checked' else ''}>Use smooth scrolling | |
| 26 | + <input type="checkbox" form="settings" name="smoothScroll" value="1"#{if settings.smoothScroll then ' checked' else ''}>Use smooth scrolling | |
| 27 | 27 | </label> |
| 28 | 28 | <label class="_settings-label"> |
| 29 | − <input type="checkbox" name="arrowScroll" value="1"#{if settings.arrowScroll then ' checked' else ''}>Use arrow keys to scroll the main content area | |
| 29 | + <input type="checkbox" form="settings" name="arrowScroll" value="1"#{if settings.arrowScroll then ' checked' else ''}>Use arrow keys to scroll the main content area | |
| 30 | 30 | <small>With this checked, use <code class="_label">alt</code> + <code class="_label">↑</code><code class="_label">↓</code><code class="_label">←</code><code class="_label">→</code> to navigate the sidebar.</small> |
| 31 | 31 | </label> |
| 32 | 32 | </div> |