Skip to content

Commit a039450

Browse files
authored
Merge pull request element-hq#1809 from vector-im/revert-1799-feature-inline-link-preview
Revert "Presentation for inline link"
2 parents 80ad45d + 1e963a6 commit a039450

File tree

4 files changed

+36
-51
lines changed

4 files changed

+36
-51
lines changed

src/skins/vector/css/common.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ h2 {
4646
margin-bottom: 16px;
4747
}
4848

49-
a {
50-
text-decoration: none;
51-
}
52-
53-
a:hover {
54-
text-decoration: underline;
55-
}
56-
5749
a:hover,
5850
a:link,
5951
a:visited {

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,16 @@ limitations under the License.
6464
margin-right: 95px;
6565
}
6666

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
6971
https://github.com/vector-im/vector-web/issues/1154
70-
*/
72+
*/
7173
.mx_EventTile_content {
7274
display: block;
75+
overflow-y: hidden;
76+
overflow-x: hidden;
7377
}
7478

7579
/* De-zalgoing */

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

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,47 +15,51 @@ limitations under the License.
1515
*/
1616

1717
.mx_LinkPreviewWidget {
18-
position: relative;
1918
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;
2025
}
2126

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;
3833
}
3934

4035
.mx_LinkPreviewWidget_caption {
41-
margin-bottom: 10px;
36+
margin-left: 15px;
37+
-webkit-flex: 1 1 auto;
38+
flex: 1 1 auto;
4239
}
4340

4441
.mx_LinkPreviewWidget_title {
42+
display: inline;
4543
font-weight: bold;
4644
}
4745

4846
.mx_LinkPreviewWidget_siteName {
49-
opacity: 0.5;
50-
font-size: 13px;
51-
line-height: 18px;
47+
display: inline;
5248
}
5349

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;
5754
}
5855

59-
.mx_LinkPreviewWidget_image img {
56+
.mx_LinkPreviewWidget_cancel {
57+
visibility: hidden;
6058
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;
6165
}

src/skins/vector/img/icon-link.svg

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)