History

Improve settings UI

Thibaut Courouble committed 9 years ago

Commit f010b601 parent 4298c603 files · +13 −17Browse files

Showing the changes to assets/javascripts (1 of 3 files). Show all

Unified · Split

assets/javascripts/templates/pages/settings_tmpl.coffee+6−10
@@ -8,16 +8,17 @@ app.templates.settingsPage = (settings) -> """ · 7 unmodified lines
88 <label class="_settings-label">
99 <input type="checkbox" name="dark" value="1"#{if settings.dark then ' checked' else ''}>Enable dark theme
1010 </label>
11− <label class="_settings-label _settings-max-width">
11+ <label class="_settings-label _setting-max-width">
1212 <input type="checkbox" name="layout" value="_max-width"#{if settings['_max-width'] then ' checked' else ''}>Enable fixed-width layout
1313 </label>
14− <label class="_settings-label">
14+ <label class="_settings-label _hide-on-mobile">
1515 <input type="checkbox" name="layout" value="_sidebar-hidden"#{if settings['_sidebar-hidden'] then ' checked' else ''}>Automatically hide and show the sidebar
16+ <small>Tip: drag the edge of the sidebar to resize it.</small>
1617 </label>
1718 </div>
1819 </div>
1920
20− <div class="_settings-fieldset">
21+ <div class="_settings-fieldset _hide-on-mobile">
2122 <h2 class="_settings-legend">Scrolling:</h2>
2223
2324 <div class="_settings-inputs">
@@ -31,11 +32,6 @@ app.templates.settingsPage = (settings) -> """ · 7 unmodified lines
3132 </div>
3233 </div>
3334
34− <div class="_settings-fieldset">
35− <h2 class="_settings-legend">Advanced:</h2>
36−
37− <div class="_settings-inputs">
38− <a href="#" class="_settings-link" data-behavior="reset">Reset all settings and data</a>
39− </div>
40− </div>
35+ <p>
36+ <a href="#" class="_reset-link" data-behavior="reset">Reset all settings and data</a>
4137 """

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t