mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	Merge pull request #2659 from vector-im/markjh/attachment_iframe_css
Add css for the iframes for e2e attachments
This commit is contained in:
		
						commit
						9026cc4977
					
				@ -44,3 +44,17 @@ limitations under the License.
 | 
				
			|||||||
    vertical-align: middle;
 | 
					    vertical-align: middle;
 | 
				
			||||||
    pointer-events: none;
 | 
					    pointer-events: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Remove the border and padding for iframes for download links. */
 | 
				
			||||||
 | 
					.mx_MImageBody_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;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user