Skip to content

Commit be90bad

Browse files
committed
Add css for the iframes for e2e attachments
1 parent 363453f commit be90bad

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/messages/MImageBody.css‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,17 @@ limitations under the License.
4444
vertical-align: middle;
4545
pointer-events: none;
4646
}
47+
48+
/* Remove the border and padding for iframes for download links. */
49+
.mx_MImageBody_download iframe {
50+
margin: 0px;
51+
padding: 0px;
52+
border: none;
53+
width: 100%;
54+
/* Set the height of the iframe to be 1 line of text.
55+
* Iframes don't automatically size themselves to fit their content.
56+
* So either we have to fix the height of the iframe using CSS or
57+
* use javascript's cross-origin postMessage API to communicate how
58+
* big the content of the iframe is. */
59+
height: 1.5em;
60+
}

0 commit comments

Comments
 (0)