mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	share pdf view is responsive
This commit is contained in:
		
							parent
							
								
									c0aa14f586
								
							
						
					
					
						commit
						0217b1c85d
					
				| @ -52,6 +52,11 @@ pre { | |||||||
|     word-wrap: anywhere; |     word-wrap: anywhere; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | iframe.pdf-view { | ||||||
|  |     width: 100%; | ||||||
|  |     height: 800px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| #menuButton { | #menuButton { | ||||||
|     display: none; |     display: none; | ||||||
|     position: fixed; |     position: fixed; | ||||||
|  | |||||||
| @ -77,7 +77,7 @@ function getContent(note) { | |||||||
|     } |     } | ||||||
|     else if (note.type === 'file') { |     else if (note.type === 'file') { | ||||||
|         if (note.mime === 'application/pdf') { |         if (note.mime === 'application/pdf') { | ||||||
|             content = `<iframe height="800" width="800" src="api/notes/${note.noteId}/view"></iframe>` |             content = `<iframe class="pdf-view" src="api/notes/${note.noteId}/view"></iframe>` | ||||||
|         } |         } | ||||||
|         else { |         else { | ||||||
|             content = `<button type="button" onclick="location.href='api/notes/${note.noteId}/download'">Download file</button>`; |             content = `<button type="button" onclick="location.href='api/notes/${note.noteId}/download'">Download file</button>`; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam