Revert "remove code related to encrypted file download button in iframe" (#7957)
* Revert "remove code related to encrypted file download button in iframe (#7940)"
This reverts commit 26216ec527
.
* udpate icon import in MFileBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
8f68a43ee3
commit
d304e24a45
4 changed files with 88 additions and 5 deletions
|
@ -45,6 +45,20 @@ limitations under the License.
|
|||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Remove the border and padding for iframes for download links. */
|
||||
.mx_MFileBody_download iframe {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: none;
|
||||
width: 100%;
|
||||
/* Set the height of the iframe to be 1 line of text.
|
||||
* Iframes don't automatically size themselves to fit their content.
|
||||
* So either we have to fix the height of the iframe using CSS or
|
||||
* use javascript's cross-origin postMessage API to communicate how
|
||||
* big the content of the iframe is. */
|
||||
height: 1.5em;
|
||||
}
|
||||
|
||||
.mx_MFileBody_info {
|
||||
cursor: pointer;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue