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.

icons/sort-arrow-down: Use `arrow` instead of `chevron`.

Aman Agrawald6fcafe3149d
diff --git a/web/icons/sort-arrow-down.svg b/web/icons/sort-arrow-down.svg
index 4cccc787e1f..ba9ad791522 100644
--- a/web/icons/sort-arrow-down.svg
+++ b/web/icons/sort-arrow-down.svg
@@ -1,3 +1,4 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
-<path d="M12 5L8 11.9282L4 5L12 5Z"/>
+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+ <path d="M 8,3.9999137 A 0.5714409,0.5714409 0 0 0 7.4285591,4.5713546 V 11.428645 A 0.5714409,0.5714409 0 0 0 8,12.000086 0.5714409,0.5714409 0 0 0 8.5714409,11.428645 V 4.5713546 A 0.5714409,0.5714409 0 0 0 8,3.9999137 Z"/>
+ <path d="m 4.5713546,7.4285591 a 0.5714409,0.5714409 0 0 0 -0.4040265,0.1674143 0.5714409,0.5714409 0 0 0 0,0.8080531 l 3.4286454,3.4286455 a 0.57149804,0.57149804 0 0 0 0.808053,0 L 11.832672,8.4040265 a 0.5714409,0.5714409 0 0 0 0,-0.8080531 0.5714409,0.5714409 0 0 0 -0.808053,0 L 8,10.620592 4.9753811,7.5959734 A 0.5714409,0.5714409 0 0 0 4.5713546,7.4285591 Z"/>
</svg>
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css
index 6fb439cece9..6a84e738c73 100644
--- a/web/styles/recent_view.css
+++ b/web/styles/recent_view.css
@@ -414,10 +414,14 @@
line-height: 1.25em; /* 20px at 16px/1em */
z-index: 1;
+ .recent-view-header-wrapper {
+ display: flex;
+ align-items: center;
+ }
+
.table-sortable-arrow {
- /* Sub alignment works perfectly in this context,
- where the table header is a text node. */
- vertical-align: sub;
+ align-self: center;
+ font-size: 1.0667em; /* 16px at 15px/1em */
transform: rotate(180deg);
opacity: 0;
transition: opacity 100ms ease-out;
@@ -463,11 +467,6 @@
width: 7%;
/* 64px at 20px/1em */
min-width: 3.2em;
-
- .zulip-icon-unread {
- position: relative;
- top: 3px;
- }
}
.recent_topic_users,
diff --git a/web/templates/recent_view_table.hbs b/web/templates/recent_view_table.hbs
index 6efbc587d20..37a81698e24 100644
--- a/web/templates/recent_view_table.hbs
+++ b/web/templates/recent_view_table.hbs
@@ -11,19 +11,34 @@
<table class="table table-responsive">
<thead id="recent-view-table-headers">
<tr>
- <th class="recent-view-stream-header" data-sort="stream_sort">{{t 'Channel' }}
- <i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
+ <th class="recent-view-stream-header" data-sort="stream_sort">
+ <div class="recent-view-header-wrapper">
+ <span>{{t 'Channel' }}</span>
+ <i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
+ </div>
</th>
- <th class="recent-view-topic-header" data-sort="topic_sort">{{t 'Topic' }}
- <i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
+ <th class="recent-view-topic-header" data-sort="topic_sort">
+ <div class="recent-view-header-wrapper">
+ <span>{{t 'Topic' }}</span>
+ <i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
+ </div>
</th>
<th data-sort="unread_sort" data-tippy-content="{{t 'Sort by unread message count' }}" class="recent-view-unread-header unread_sort tippy-zulip-delayed-tooltip hidden-for-spectators">
- <i class="zulip-icon zulip-icon-unread"></i>
- <i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
+ <div class="recent-view-header-wrapper">
+ <i class="zulip-icon zulip-icon-unread"></i>
+ <i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
+ </div>
</th>
- <th class='recent-view-participants-header participants_header'>{{t 'Participants' }}</th>
- <th data-sort="numeric" data-sort-prop="last_msg_id" class="recent-view-last-msg-time-header last_msg_time_header active descend">{{t 'Time' }}
- <i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
+ <th class='recent-view-participants-header participants_header'>
+ <div class="recent-view-header-wrapper">
+ {{t 'Participants' }}
+ </div>
+ </th>
+ <th data-sort="numeric" data-sort-prop="last_msg_id" class="recent-view-last-msg-time-header last_msg_time_header active descend">
+ <div class="recent-view-header-wrapper">
+ <span>{{t 'Time' }}</span>
+ <i class="table-sortable-arrow zulip-icon zulip-icon-sort-arrow-down"></i>
+ </div>
</th>
</tr>
</thead>