mirror of
https://github.com/zadam/trilium.git
synced 2026-02-28 17:43:36 +01:00
fix(mobile): remove redundant file properties footer
This commit is contained in:
parent
11fa815e13
commit
d044fce9c1
@ -24,9 +24,7 @@ import NoteWrapperWidget from "../widgets/note_wrapper.js";
|
|||||||
import NoteDetail from "../widgets/NoteDetail.jsx";
|
import NoteDetail from "../widgets/NoteDetail.jsx";
|
||||||
import QuickSearchWidget from "../widgets/quick_search.js";
|
import QuickSearchWidget from "../widgets/quick_search.js";
|
||||||
import { useNoteContext } from "../widgets/react/hooks.jsx";
|
import { useNoteContext } from "../widgets/react/hooks.jsx";
|
||||||
import StandaloneRibbonAdapter from "../widgets/ribbon/components/StandaloneRibbonAdapter.jsx";
|
|
||||||
import FilePropertiesTab from "../widgets/ribbon/FilePropertiesTab.jsx";
|
import FilePropertiesTab from "../widgets/ribbon/FilePropertiesTab.jsx";
|
||||||
import SearchDefinitionTab from "../widgets/ribbon/SearchDefinitionTab.jsx";
|
|
||||||
import SearchResult from "../widgets/search_result.jsx";
|
import SearchResult from "../widgets/search_result.jsx";
|
||||||
import MobileEditorToolbar from "../widgets/type_widgets/text/mobile_editor_toolbar.jsx";
|
import MobileEditorToolbar from "../widgets/type_widgets/text/mobile_editor_toolbar.jsx";
|
||||||
import { applyModals } from "./layout_commons.js";
|
import { applyModals } from "./layout_commons.js";
|
||||||
@ -78,7 +76,6 @@ export default class MobileLayout {
|
|||||||
.child(<NoteDetail />)
|
.child(<NoteDetail />)
|
||||||
.child(<NoteList media="screen" />)
|
.child(<NoteList media="screen" />)
|
||||||
.child(<SearchResult />)
|
.child(<SearchResult />)
|
||||||
.child(<FilePropertiesWrapper />)
|
|
||||||
)
|
)
|
||||||
.child(<MobileEditorToolbar />)
|
.child(<MobileEditorToolbar />)
|
||||||
.child(new FindWidget())
|
.child(new FindWidget())
|
||||||
@ -102,13 +99,3 @@ export default class MobileLayout {
|
|||||||
return rootContainer;
|
return rootContainer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function FilePropertiesWrapper() {
|
|
||||||
const { note, ntxId } = useNoteContext();
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
{note?.type === "file" && <FilePropertiesTab note={note} ntxId={ntxId} />}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user