settings: Wrap subsections into seperate divs.

Following templates are affected: display-settings.handlebars and
ui-settings.handlebars.
There will be no UI change, it is just to make code more readable.
This commit is contained in:
Shubham Dhama
2018-04-18 01:07:33 +05:30
committed by Tim Abbott
parent 19177a4aff
commit a3ba484c99
2 changed files with 131 additions and 122 deletions

View File

@@ -1,5 +1,6 @@
<div id="display-settings" class="settings-section" data-name="display-settings">
<form class="display-settings-form">
<div id="user-lang-settings">
<!-- this is inline block so that the alert notification can sit beside
it. If there's not an alert, don't make it inline-block. -->
<h3 class="inline-block">{{t "Language settings" }}</h3>
@@ -16,7 +17,9 @@
</div>
{{ partial "default_language_modal"}}
</div>
<div id="user-display-settings">
<h3 class="inline-block">{{t "Display settings" }}</h3>
<div class="alert-notification" id="display-settings-status"></div>
@@ -52,7 +55,9 @@
</label>
<label for="left_side_userlist" class="inline-block">{{t "User list on left sidebar in narrow windows" }}</label>
</div>
</div>
<div id="user-time-settings">
<h3 class="inline-block">{{t "Time settings" }}</h3>
<div class="alert-notification" id="time-settings-status"></div>
@@ -81,7 +86,9 @@
{{/each}}
</select>
</div>
</div>
<div id="user-emoji-settings">
<h3 class="inline-block light">Emoji style</h3>
<div class="alert-notification" id="emoji-settings-status"></div>
@@ -118,5 +125,6 @@
{{t "Translate emoticons (convert <code>:)</code> to 😃 in messages)" }}
</label>
</div>
</div>
</form>
</div>

View File

@@ -2,7 +2,7 @@
<div class="alert" id="ui-settings-status"></div>
<form class="ui-settings-form">
<div class="tip">{{t "Features for the brave. Labs features may change, break, or disappear at any time." }}</div>
<div id="lab-ui-settings">
<h3>{{t "UI Settings"}}</h3>
<div class="input-group">
@@ -17,5 +17,6 @@
{{t "Enable desktop notifications for new streams" }}
</label>
</div>
</div>
</form>
</div>