mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-29 11:44:21 +08:00 
			
		
		
		
	tweaks for the code preview
This commit is contained in:
		
							parent
							
								
									a1ea2c9115
								
							
						
					
					
						commit
						8f68ff1932
					
				| @ -195,7 +195,7 @@ export default class NoteDetailWidget extends TabAwareWidget { | |||||||
|             const noteComplement = await this.tabContext.getNoteComplement(); |             const noteComplement = await this.tabContext.getNoteComplement(); | ||||||
| 
 | 
 | ||||||
|             if (note.hasLabel('readOnly') || |             if (note.hasLabel('readOnly') || | ||||||
|                 (noteComplement.content && noteComplement.content.length > 10000)) { |                 (noteComplement.content && noteComplement.content.length > 30000)) { | ||||||
|                 type = 'read-only-code'; |                 type = 'read-only-code'; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ const TPL = ` | |||||||
|     } |     } | ||||||
|     </style> |     </style> | ||||||
| 
 | 
 | ||||||
|     <div class="alert alert-warning no-print"> |     <div class="alert alert-warning no-print" style="margin-bottom: 0;"> | ||||||
|         Read only code view is shown. <a href="#" class="edit-note">Click here</a> to edit the note. |         Read only code view is shown. <a href="#" class="edit-note">Click here</a> to edit the note. | ||||||
|     </div> |     </div> | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam