mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	feat(book_properties): improve layout & accessibility
This commit is contained in:
		
							parent
							
								
									2d11ed805d
								
							
						
					
					
						commit
						430ed78d85
					
				@ -19,6 +19,7 @@ const TPL = /*html*/`
 | 
			
		||||
 | 
			
		||||
        .book-properties-container {
 | 
			
		||||
            display: flex;
 | 
			
		||||
            align-items: center;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .book-properties-container > * {
 | 
			
		||||
 | 
			
		||||
@ -48,7 +48,7 @@ export function renderBookProperty(property: BookProperty, note: FNote) {
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
            $checkbox.prop("checked", note.hasOwnedLabel(property.bindToLabel));
 | 
			
		||||
            $container.prepend($checkbox);
 | 
			
		||||
            $label.prepend($checkbox);
 | 
			
		||||
            break;
 | 
			
		||||
        default:
 | 
			
		||||
            throw new Error(`Unknown property type: ${property.type}`);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user