Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 27e4806

Browse files
t3chguyGermain Souquet
andauthored
Apply tweaks to Thread list as per design spec (#8149)
Co-authored-by: Germain Souquet <[email protected]>
1 parent 4f6b939 commit 27e4806

File tree

7 files changed

+173
-72
lines changed

7 files changed

+173
-72
lines changed

res/css/views/right_panel/_ThreadPanel.scss

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@ limitations under the License.
2020

2121
.mx_BaseCard_header {
2222
margin-bottom: 12px;
23+
2324
.mx_BaseCard_close,
2425
.mx_BaseCard_back {
2526
width: 24px;
2627
height: 24px;
2728
}
29+
2830
.mx_BaseCard_back {
2931
left: -4px;
3032
}
33+
3134
.mx_BaseCard_close {
3235
right: -4px;
3336
}
@@ -66,6 +69,7 @@ limitations under the License.
6669
--size: 24px;
6770
width: var(--size);
6871
height: var(--size);
72+
6973
&::after {
7074
mask-size: var(--size);
7175
mask-image: url("$(res)/img/element-icons/message/overflow-large.svg");
@@ -99,11 +103,10 @@ limitations under the License.
99103
}
100104

101105
.mx_AutoHideScrollbar {
102-
background: #fff;
103106
background-color: $background;
104107
border-radius: 8px;
105-
width: calc(100% - 16px);
106-
padding-right: 16px;
108+
width: calc(100% - 24px);
109+
padding-right: 18px;
107110
}
108111

109112
&.mx_ThreadView .mx_ThreadView_timelinePanelWrapper {
@@ -125,13 +128,15 @@ limitations under the License.
125128
padding-right: 0;
126129
}
127130

128-
.mx_EventTile, .mx_GenericEventListSummary {
131+
.mx_EventTile,
132+
.mx_GenericEventListSummary {
129133
// Account for scrollbar when hovering
130134
padding-top: 0;
131135

132136
.mx_ThreadInfo {
133137
position: relative;
134138
padding-right: 11px;
139+
135140
&::after {
136141
content: '';
137142
display: block;
@@ -157,6 +162,10 @@ limitations under the License.
157162
.mx_EventTile_e2eIcon {
158163
left: 8px;
159164
}
165+
166+
&:hover .mx_EventTile_line {
167+
box-shadow: unset !important; // don't show the verification left stroke in the thread list
168+
}
160169
}
161170

162171
.mx_MessageComposer {
@@ -190,10 +199,6 @@ limitations under the License.
190199
float: right;
191200
}
192201

193-
.mx_ThreadPanel_dropdown[aria-expanded=true]::before {
194-
transform: rotate(180deg);
195-
}
196-
197202
.mx_MessageTimestamp {
198203
font-size: $font-12px;
199204
color: $secondary-content;
@@ -272,26 +277,39 @@ limitations under the License.
272277

273278
h2 {
274279
color: $primary-content;
275-
font-weight: 600;
280+
font-weight: $font-semi-bold;
276281
font-size: $font-18px;
282+
margin-top: 24px;
283+
margin-bottom: 10px;
277284
}
278285

279286
p {
280287
font-size: $font-15px;
281288
color: $secondary-content;
289+
margin: 10px 0;
282290
}
283291

284292
button {
285293
border: none;
286294
background: none;
287295
color: $accent;
296+
font-size: $font-15px;
288297

289298
&:hover,
290299
&:active {
291300
text-decoration: underline;
292301
cursor: pointer;
293302
}
294303
}
304+
305+
.mx_ThreadPanel_empty_tip {
306+
font-size: $font-12px;
307+
line-height: $font-15px;
308+
309+
>b {
310+
font-weight: $font-semi-bold;
311+
}
312+
}
295313
}
296314

297315
.mx_ThreadPanel_largeIcon {
@@ -317,6 +335,7 @@ limitations under the License.
317335
.mx_ContextualMenu_wrapper.mx_ThreadPanel__header {
318336
.mx_ContextualMenu {
319337
position: initial;
338+
320339
span:first-of-type {
321340
font-weight: $font-semi-bold;
322341
font-size: inherit;
@@ -336,6 +355,7 @@ limitations under the License.
336355
left: auto;
337356
right: 22px;
338357
border-bottom-color: $quinary-content;
358+
339359
&::after {
340360
content: "";
341361
border: inherit;
@@ -357,10 +377,12 @@ limitations under the License.
357377
&:hover {
358378
background-color: $event-selected-color;
359379
}
380+
360381
&[aria-checked="true"] {
361382
:first-child {
362383
margin-left: -20px;
363384
}
385+
364386
:first-child::before {
365387
content: "";
366388
width: 12px;

0 commit comments

Comments
 (0)