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: Drop column from tables on narrow screen.

Palash Baderiac1009bc05192
diff --git a/web/styles/settings.css b/web/styles/settings.css
index d7bf6808208..9d90f9cc713 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -1829,6 +1829,14 @@ $option_title_width: 180px;
}
@media (width < $sm_min) {
+ .user_row,
+ .settings-section {
+ .bot_type,
+ .last_active {
+ display: none;
+ }
+ }
+
#pw_strength {
margin: auto;
}
@@ -1865,6 +1873,10 @@ $option_title_width: 180px;
width: calc(100% - 25px);
}
}
+
+ .topic_date_muted {
+ display: none;
+ }
}
@media (width < $mm_min) {
diff --git a/web/templates/muted_topic_ui_row.hbs b/web/templates/muted_topic_ui_row.hbs
index c3b3322f872..a298f477714 100644
--- a/web/templates/muted_topic_ui_row.hbs
+++ b/web/templates/muted_topic_ui_row.hbs
@@ -2,7 +2,7 @@
<tr data-stream-id="{{stream_id}}" data-stream="{{stream}}" data-topic="{{topic}}" data-date-muted="{{date_muted_str}}">
<td>{{stream}}</td>
<td>{{topic}}</td>
- <td>{{date_muted_str}}</td>
+ <td class="topic_date_muted">{{date_muted_str}}</td>
<td class="actions">
<span><a class="settings-unmute-topic">{{t "Unmute" }}</a></span>
</td>
diff --git a/web/templates/settings/admin_user_list.hbs b/web/templates/settings/admin_user_list.hbs
index c1c6163c03a..1a6f95b8141 100644
--- a/web/templates/settings/admin_user_list.hbs
+++ b/web/templates/settings/admin_user_list.hbs
@@ -32,7 +32,7 @@
{{/if}}
</span>
</td>
- <td>
+ <td class="bot_type">
<span class="bot type">{{bot_type}}</span>
</td>
{{else if is_active}}
diff --git a/web/templates/settings/bot_list_admin.hbs b/web/templates/settings/bot_list_admin.hbs
index 888537c4aa1..14c4dc58376 100644
--- a/web/templates/settings/bot_list_admin.hbs
+++ b/web/templates/settings/bot_list_admin.hbs
@@ -17,7 +17,7 @@
<th data-sort="email">{{t "Email" }}</th>
<th class="user_role" data-sort="role">{{t "Role" }}</th>
<th data-sort="bot_owner">{{t "Owner" }}</th>
- <th data-sort="alphabetic" data-sort-prop="bot_type">{{t "Bot type" }}</th>
+ <th data-sort="alphabetic" data-sort-prop="bot_type" class="bot_type">{{t "Bot type" }}</th>
{{#if is_admin}}
<th class="actions">{{t "Actions" }}</th>
{{/if}}
diff --git a/web/templates/settings/muted_topics_settings.hbs b/web/templates/settings/muted_topics_settings.hbs
index de4d7dfdfb2..8aaff4ffb4f 100644
--- a/web/templates/settings/muted_topics_settings.hbs
+++ b/web/templates/settings/muted_topics_settings.hbs
@@ -8,7 +8,7 @@
<thead class="table-sticky-headers">
<th data-sort="alphabetic" data-sort-prop="stream">{{t "Stream" }}</th>
<th data-sort="alphabetic" data-sort-prop="topic">{{t "Topic" }}</th>
- <th data-sort="numeric" data-sort-prop="date_muted">{{t "Date muted" }}</th>
+ <th data-sort="numeric" data-sort-prop="date_muted" class="topic_date_muted">{{t "Date muted" }}</th>
<th class="actions">{{t "Actions" }}</th>
</thead>
<tbody id="muted_topics_table" class="required-text" data-empty="{{t 'You have not muted any topics yet.'}}"></tbody>