Skip to content

Commit 974a187

Browse files
committed
fix annoying bug where URL previews with very long lines (e.g. vector permalinks) would get clipped
1 parent 4cddda6 commit 974a187

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ limitations under the License.
3434

3535
.mx_LinkPreviewWidget_caption {
3636
margin-left: 15px;
37-
-webkit-flex: 1;
38-
flex: 1;
37+
-webkit-flex: 1 1 auto;
38+
flex: 1 1 auto;
3939
}
4040

4141
.mx_LinkPreviewWidget_title {
@@ -50,11 +50,14 @@ limitations under the License.
5050
.mx_LinkPreviewWidget_description {
5151
margin-top: 8px;
5252
white-space: normal;
53+
word-break: break-word;
5354
}
5455

5556
.mx_LinkPreviewWidget_cancel {
5657
visibility: hidden;
5758
cursor: pointer;
59+
-webkit-flex: 0 0 40px;
60+
flex: 0 0 40px;
5861
}
5962

6063
.mx_LinkPreviewWidget:hover .mx_LinkPreviewWidget_cancel {

0 commit comments

Comments
 (0)