mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	fix render note attributes
This commit is contained in:
		
							parent
							
								
									722380e7b8
								
							
						
					
					
						commit
						f3e7e6bbe7
					
				
							
								
								
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -115,8 +115,8 @@ | |||||||
|           "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", |           "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", | ||||||
|           "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", |           "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", | ||||||
|           "requires": { |           "requires": { | ||||||
|             "base64-js": "1.3.0", |             "base64-js": "^1.0.2", | ||||||
|             "ieee754": "1.1.12" |             "ieee754": "^1.1.4" | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         "file-type": { |         "file-type": { | ||||||
|  | |||||||
| @ -81,10 +81,6 @@ async function saveNotesIfChanged() { | |||||||
| /** @type {TabContext[]} */ | /** @type {TabContext[]} */ | ||||||
| let tabContexts = []; | let tabContexts = []; | ||||||
| 
 | 
 | ||||||
| function getActiveComponent() { |  | ||||||
|     return getActiveTabContext().getComponent(); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| function getActiveEditor() { | function getActiveEditor() { | ||||||
|     const activeTabContext = getActiveTabContext(); |     const activeTabContext = getActiveTabContext(); | ||||||
| 
 | 
 | ||||||
| @ -496,7 +492,6 @@ export default { | |||||||
|     getActiveEditor, |     getActiveEditor, | ||||||
|     isActive, |     isActive, | ||||||
|     activateTabContext, |     activateTabContext, | ||||||
|     getActiveComponent, |  | ||||||
|     clearOpenTabsTask, |     clearOpenTabsTask, | ||||||
|     filterTabs |     filterTabs | ||||||
| }; | }; | ||||||
| @ -18,7 +18,7 @@ class NoteDetailRender { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     async render() { |     async render() { | ||||||
|         const attributes = await attributeService.getAttributes(); |         const attributes = await this.ctx.attributes.getAttributes(); | ||||||
|         const renderNotes = attributes.filter(attr => |         const renderNotes = attributes.filter(attr => | ||||||
|             attr.type === 'relation' |             attr.type === 'relation' | ||||||
|             && attr.name === 'renderNote' |             && attr.name === 'renderNote' | ||||||
|  | |||||||
| @ -45,7 +45,6 @@ body { | |||||||
|     flex-grow: 1; |     flex-grow: 1; | ||||||
|     flex-shrink: 1; |     flex-shrink: 1; | ||||||
|     flex-basis: 60%; |     flex-basis: 60%; | ||||||
|     margin-top: 10px; |  | ||||||
|     font-family: var(--tree-font-family); |     font-family: var(--tree-font-family); | ||||||
|     font-size: var(--tree-font-size); |     font-size: var(--tree-font-size); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam