Skip to content

Commit 9e5d090

Browse files
authored
Merge pull request element-hq#2163 from vector-im/matthew/e2e
First wave of E2E visuals
2 parents f299572 + 695930e commit 9e5d090

File tree

9 files changed

+115
-12
lines changed

9 files changed

+115
-12
lines changed

src/skins/vector/css/matrix-react-sdk/structures/FilePanel.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ limitations under the License.
6060
.mx_FilePanel .mx_EventTile .mx_MImageBody_downloadLink {
6161
flex: 1 1 auto;
6262
color: #747474;
63-
word-break: break-all;
63+
word-wrap: break-word;
6464
}
6565

6666
.mx_FilePanel .mx_EventTile .mx_MImageBody_size {
@@ -88,7 +88,7 @@ limitations under the License.
8888
font-size: 11px;
8989
opacity: 1.0;
9090
color: #acacac;
91-
word-break: break-all;
91+
word-wrap: break-word;
9292
}
9393

9494
.mx_FilePanel .mx_EventTile .mx_MessageTimestamp {

src/skins/vector/css/matrix-react-sdk/structures/NotificationPanel.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ limitations under the License.
4444
.mx_NotificationPanel .mx_EventTile_roomName {
4545
font-weight: bold;
4646
font-size: 14px;
47+
word-wrap: break-word;
4748
}
4849

4950
.mx_NotificationPanel .mx_EventTile_roomName a {
@@ -62,6 +63,7 @@ limitations under the License.
6263
font-size: 12px;
6364
display: inline;
6465
padding-left: 0px;
66+
word-wrap: break-word;
6567
}
6668

6769
.mx_NotificationPanel .mx_EventTile_senderDetails {

src/skins/vector/css/matrix-react-sdk/views/rooms/EventTile.css

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,13 @@ limitations under the License.
3636

3737
.mx_EventTile.mx_EventTile_info .mx_EventTile_avatar {
3838
top: 8px;
39-
left: 44px;
39+
left: 65px;
4040
}
4141

4242
.mx_EventTile_continuation {
4343
padding-top: 0px ! important;
4444
}
4545

46-
.mx_EventTile_verified {
47-
background-color: #eaf5f0;
48-
}
49-
50-
.mx_EventTile_unverified {
51-
background-color: #ffa0a0;
52-
}
53-
5446
.mx_EventTile .mx_SenderProfile {
5547
color: #454545;
5648
opacity: 0.5;
@@ -87,6 +79,10 @@ limitations under the License.
8779
line-height: 22px;
8880
}
8981

82+
.mx_EventTile_info .mx_EventTile_line {
83+
padding-left: 83px;
84+
}
85+
9086
/* HACK to override line-height which is already marked important elsewhere */
9187
.mx_EventTile_bigEmoji.mx_EventTile_bigEmoji {
9288
font-size: 48px ! important;
@@ -122,6 +118,10 @@ limitations under the License.
122118
color: #fff;
123119
}
124120

121+
.mx_EventTile_encrypting {
122+
color: #abddbc ! important;
123+
}
124+
125125
.mx_EventTile_sending {
126126
color: #ddd;
127127
}
@@ -227,6 +227,43 @@ limitations under the License.
227227
overflow-y: hidden;
228228
}
229229

230+
/* End to end encryption stuff */
231+
232+
.mx_EventTile_e2eIcon {
233+
display: block;
234+
position: absolute;
235+
top: 9px;
236+
left: 46px;
237+
z-index: 2;
238+
}
239+
240+
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line,
241+
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line {
242+
padding-left: 60px;
243+
}
244+
245+
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line {
246+
border-left: #76cfa5 5px solid;
247+
}
248+
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line {
249+
border-left: #e8bf37 5px solid;
250+
}
251+
252+
.mx_EventTile:hover.mx_EventTile_verified .mx_MessageTimestamp,
253+
.mx_EventTile:hover.mx_EventTile_unverified .mx_MessageTimestamp {
254+
left: 3px;
255+
}
256+
257+
.mx_EventTile_verified .mx_EventTile_e2eIcon {
258+
display: none;
259+
}
260+
261+
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_e2eIcon,
262+
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_e2eIcon {
263+
display: block;
264+
left: 41px;
265+
}
266+
230267
/* Various markdown overrides */
231268

232269
.mx_EventTile_content .markdown-body {

src/skins/vector/css/matrix-react-sdk/views/rooms/LinkPreviewWidget.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ limitations under the License.
5050
.mx_LinkPreviewWidget_description {
5151
margin-top: 8px;
5252
white-space: normal;
53-
word-break: break-word;
53+
word-wrap: break-word;
5454
}
5555

5656
.mx_LinkPreviewWidget_cancel {

src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ limitations under the License.
4646
width: 100%;
4747
}
4848

49+
.mx_MessageComposer_e2eIcon {
50+
position: absolute;
51+
left: 46px;
52+
}
53+
4954
.mx_MessageComposer_noperm_error {
5055
width: 100%;
5156
height: 60px;

src/skins/vector/img/e2e-blocked.svg

Lines changed: 12 additions & 0 deletions
Loading
Lines changed: 23 additions & 0 deletions
Loading

src/skins/vector/img/e2e-verified.svg

Lines changed: 12 additions & 0 deletions
Loading

src/skins/vector/img/e2e-warning.svg

Lines changed: 12 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)