mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix note preview, closes #1869
This commit is contained in:
		
							parent
							
								
									172bdb6118
								
							
						
					
					
						commit
						6e010dfbd7
					
				@ -39,7 +39,7 @@ async function getRenderedContent(note, options = {}) {
 | 
			
		||||
                .css("max-width", "100%")
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
    else if (!options.tooltip && ['file', 'pdf', 'audio', 'video']) {
 | 
			
		||||
    else if (!options.tooltip && ['file', 'pdf', 'audio', 'video'].includes(type)) {
 | 
			
		||||
        const $downloadButton = $('<button class="file-download btn btn-primary" type="button">Download</button>');
 | 
			
		||||
        const $openButton = $('<button class="file-open btn btn-primary" type="button">Open</button>');
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user