@@ -15,11 +15,15 @@ limitations under the License.
1515*/
1616
1717.mx_LinkPreviewWidget {
18- margin : $spacing-16 0 $spacing-16 auto ;
18+ margin : $spacing-8 0 $spacing-8 auto ;
19+ padding-top : 2px ;
20+ padding-bottom : 2px ;
1921 display : flex ;
2022 column-gap : $spacing-4 ;
2123 border-inline-start : 2px solid $preview-widget-bar-color ;
2224 color : $info-plinth-fg-color ;
25+ font-size : $font-14px ;
26+ line-height : $font-18px ;
2327
2428 .mx_MatrixChat_useCompactLayout & {
2529 margin-top : 6px ;
@@ -40,13 +44,18 @@ limitations under the License.
4044
4145 .mx_LinkPreviewWidget_image {
4246 flex : 0 0 100px ;
47+ margin-top : auto ;
48+ margin-bottom : auto ;
4349 text-align : center ;
4450 cursor : pointer ;
4551 }
4652
4753 .mx_LinkPreviewWidget_caption {
4854 flex : 1 ;
4955 overflow : hidden ; // cause it to wrap rather than clip
56+ display : flex ;
57+ flex-direction : column ;
58+ justify-content : center ;
5059 }
5160
5261 .mx_LinkPreviewWidget_title ,
@@ -67,7 +76,7 @@ limitations under the License.
6776 }
6877
6978 .mx_LinkPreviewWidget_description {
70- margin-top : $spacing-8 ;
79+ margin-top : $font-3px ; ;
7180 word-wrap : break-word ;
7281 -webkit-line-clamp : 3 ;
7382 }
@@ -87,9 +96,9 @@ limitations under the License.
8796}
8897
8998.sc_LinkPreviewWidget_youtubeCaption {
90- flex-basis : 40% ;
99+ flex-basis : 40% !important ;
91100
92101 .mx_LinkPreviewWidget_description {
93- -webkit-line-clamp : unset ;
102+ -webkit-line-clamp : unset !important ;
94103 }
95104}
0 commit comments