File tree Expand file tree Collapse file tree 4 files changed +36
-51
lines changed
matrix-react-sdk/views/rooms Expand file tree Collapse file tree 4 files changed +36
-51
lines changed Original file line number Diff line number Diff line change 46
46
margin-bottom : 16px ;
47
47
}
48
48
49
- a {
50
- text-decoration : none;
51
- }
52
-
53
- a : hover {
54
- text-decoration : underline;
55
- }
56
-
57
49
a : hover ,
58
50
a : link ,
59
51
a : visited {
Original file line number Diff line number Diff line change @@ -64,12 +64,16 @@ limitations under the License.
64
64
margin-right : 95px ;
65
65
}
66
66
67
- /* Removed hidden overflow in order to have hanging elements
68
- in the message stream gutters. This may re-introduce
67
+ /* all the overflow-y: hidden; are to trap Zalgos -
68
+ but they introduce an implicit overflow-x: auto.
69
+ so make that explicitly hidden too to avoid random
70
+ horizontal scrollbars occasionally appearing, like in
69
71
https://github.com/vector-im/vector-web/issues/1154
70
- */
72
+ */
71
73
.mx_EventTile_content {
72
74
display : block;
75
+ overflow-y : hidden;
76
+ overflow-x : hidden;
73
77
}
74
78
75
79
/* De-zalgoing */
Original file line number Diff line number Diff line change @@ -15,47 +15,51 @@ limitations under the License.
15
15
*/
16
16
17
17
.mx_LinkPreviewWidget {
18
- position : relative;
19
18
margin-top : 15px ;
19
+ margin-right : 15px ;
20
+ margin-bottom : 15px ;
21
+ display : -webkit-flex;
22
+ display : flex;
23
+ border-left : 4px solid # ddd ;
24
+ color : # 888 ;
20
25
}
21
26
22
- .mx_LinkPreviewWidget : before {
23
- position : absolute;
24
- z-index : 1 ;
25
- content : '\0020' ;
26
- top : 0 ;
27
- left : -15px ;
28
- width : 1px ;
29
- height : 100% ;
30
- background-color : # dddddd ;
31
- }
32
-
33
- .mx_LinkPreviewWidget_indicator {
34
- position : absolute;
35
- z-index : 1 ;
36
- top : 2px ;
37
- left : -40px ;
27
+ .mx_LinkPreviewWidget_image {
28
+ -webkit-flex : 0 0 100px ;
29
+ flex : 0 0 100px ;
30
+ margin-left : 15px ;
31
+ text-align : center;
32
+ cursor : pointer;
38
33
}
39
34
40
35
.mx_LinkPreviewWidget_caption {
41
- margin-bottom : 10px ;
36
+ margin-left : 15px ;
37
+ -webkit-flex : 1 1 auto;
38
+ flex : 1 1 auto;
42
39
}
43
40
44
41
.mx_LinkPreviewWidget_title {
42
+ display : inline;
45
43
font-weight : bold;
46
44
}
47
45
48
46
.mx_LinkPreviewWidget_siteName {
49
- opacity : 0.5 ;
50
- font-size : 13px ;
51
- line-height : 18px ;
47
+ display : inline;
52
48
}
53
49
54
- .mx_LinkPreviewWidget_image {
55
- margin-top : 10px ;
56
- margin-bottom : 10px ;
50
+ .mx_LinkPreviewWidget_description {
51
+ margin-top : 8px ;
52
+ white-space : normal;
53
+ word-break : break-word;
57
54
}
58
55
59
- .mx_LinkPreviewWidget_image img {
56
+ .mx_LinkPreviewWidget_cancel {
57
+ visibility : hidden;
60
58
cursor : pointer;
59
+ -webkit-flex : 0 0 40px ;
60
+ flex : 0 0 40px ;
61
+ }
62
+
63
+ .mx_LinkPreviewWidget : hover .mx_LinkPreviewWidget_cancel {
64
+ visibility : visible;
61
65
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments