mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	fix(client): search results taking up space when not needed
This commit is contained in:
		@@ -4,7 +4,6 @@ import Alert from "./react/Alert";
 | 
			
		||||
import { useNoteContext,  useTriliumEvent } from "./react/hooks";
 | 
			
		||||
import "./search_result.css";
 | 
			
		||||
import { SearchNoteList } from "./collections/NoteList";
 | 
			
		||||
// import NoteListRenderer from "../services/note_list_renderer";
 | 
			
		||||
 | 
			
		||||
enum SearchResultState {
 | 
			
		||||
    NO_RESULTS,
 | 
			
		||||
@@ -43,7 +42,7 @@ export default function SearchResult() {
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
        <div className="search-result-widget">
 | 
			
		||||
        <div className={`search-result-widget ${!state ? "hidden-ext" : ""}`}>
 | 
			
		||||
            {state === SearchResultState.NOT_EXECUTED && (
 | 
			
		||||
                <Alert type="info" className="search-not-executed-yet">{t("search_result.search_not_executed")}</Alert>
 | 
			
		||||
            )}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user