Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Display radio choice label as flexbox.

Karl Stolley55e43b692623
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 0decfcced8e..89df75a74dd 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -1089,6 +1089,7 @@ input[type="checkbox"] {
label.display-settings-radio-choice-label {
border-bottom: 1px solid hsl(0deg 0% 0% / 20%);
padding: 8px 0 10px;
+ display: flex;
&:last-of-type {
border-bottom: none;
@@ -1117,7 +1118,8 @@ label.display-settings-radio-choice-label {
}
.right {
- float: right;
+ /* Push to far right in flex container. */
+ margin-left: auto;
}
}
@@ -1147,10 +1149,8 @@ $option_title_width: 180px;
overflow-x: hidden;
overflow-y: visible;
position: relative;
- height: 36px;
.user-name-and-status-text {
- margin-top: -4px;
display: flex;
flex-direction: column;
}
diff --git a/web/templates/settings/display_settings.hbs b/web/templates/settings/display_settings.hbs
index 377f0c6ceb5..7637ef17424 100644
--- a/web/templates/settings/display_settings.hbs
+++ b/web/templates/settings/display_settings.hbs
@@ -41,8 +41,14 @@
<div class="emojiset_choices grey-box prop-element" id="{{prefix}}emojiset" data-setting-widget-type="radio-group" data-setting-choice-type="string">
{{#each settings_object.emojiset_choices}}
<label class="display-settings-radio-choice-label">
- <input type="radio" class="setting_emojiset_choice" name="emojiset" value="{{this.key}}"/>
- <span>{{this.text}}</span>
+ <div class="radio-choice-controls">
+ <input type="radio" class="setting_emojiset_choice" name="emojiset" value="{{this.key}}"/>
+ <span>{{this.text}}</span>
+ {{#if (eq this.key "google-blob")}}
+ <span>(<em>{{t "deprecated" }}</em>)</span>
+ {{> ../help_link_widget link="/help/emoji-and-emoticons#change-your-emoji-set" }}
+ {{/if}}
+ </div>
<span class="right">
{{#if (eq this.key "text") }}
<div class="emoji_alt_code">&nbsp;:relaxed:</div>
@@ -53,10 +59,6 @@
<img class="emoji" src="/static/generated/emoji/images-{{this.key}}-64/1f389.png" />
{{/if}}
</span>
- {{#if (eq this.key "google-blob")}}
- <span>(<em>{{t "deprecated" }}</em>)</span>
- {{> ../help_link_widget link="/help/emoji-and-emoticons#change-your-emoji-set" }}
- {{/if}}
</label>
{{/each}}
</div>
@@ -96,8 +98,10 @@
<div class="user_list_style_values grey-box prop-element" id="{{prefix}}user_list_style" data-setting-widget-type="radio-group" data-setting-choice-type="number">
{{#each user_list_style_values}}
<label class="display-settings-radio-choice-label">
- <input type="radio" class="setting_user_list_style_choice" name="user_list_style" value="{{this.code}}"/>
- <span>{{this.description}}</span>
+ <div class="radio-choice-controls">
+ <input type="radio" class="setting_user_list_style_choice" name="user_list_style" value="{{this.code}}"/>
+ <span>{{this.description}}</span>
+ </div>
<span class="right preview">
{{#if (eq this.code 1)}}
<div class="user-name-and-status-emoji">