mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	fix(client): quick search in vertical layout
This commit is contained in:
		
							parent
							
								
									13e33549c1
								
							
						
					
					
						commit
						0f7b96f096
					
				@ -61,8 +61,13 @@ export default class LauncherWidget extends BasicWidget {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!this.innerWidget) {
 | 
					        if (!this.innerWidget) {
 | 
				
			||||||
 | 
					            if (launcherType === "builtinWidget") {
 | 
				
			||||||
 | 
					                // This allows filtering of builtin widgets based on the layout (horizontal / vertical)
 | 
				
			||||||
 | 
					                return false;
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
                throw new Error(`Unknown initialization error for note '${note.noteId}', title '${note.title}'`);
 | 
					                throw new Error(`Unknown initialization error for note '${note.noteId}', title '${note.title}'`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.child(this.innerWidget);
 | 
					        this.child(this.innerWidget);
 | 
				
			||||||
        if (this.isHorizontalLayout && this.innerWidget.settings) {
 | 
					        if (this.isHorizontalLayout && this.innerWidget.settings) {
 | 
				
			||||||
@ -113,7 +118,7 @@ export default class LauncherWidget extends BasicWidget {
 | 
				
			|||||||
            case "todayInJournal":
 | 
					            case "todayInJournal":
 | 
				
			||||||
                return new TodayLauncher(note);
 | 
					                return new TodayLauncher(note);
 | 
				
			||||||
            case "quickSearch":
 | 
					            case "quickSearch":
 | 
				
			||||||
                return new QuickSearchWidget();
 | 
					                return this.isHorizontalLayout ? new QuickSearchWidget() : null;
 | 
				
			||||||
            default:
 | 
					            default:
 | 
				
			||||||
                throw new Error(`Unrecognized builtin widget ${builtinWidget} for launcher ${note.noteId} "${note.title}"`);
 | 
					                throw new Error(`Unrecognized builtin widget ${builtinWidget} for launcher ${note.noteId} "${note.title}"`);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user