Skip to content

Commit 7d1abee

Browse files
committed
feat(mobile/search): show results (closes #5655)
1 parent d503993 commit 7d1abee

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

apps/client/src/layouts/mobile_layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import MobileDetailMenu from "../widgets/mobile_widgets/mobile_detail_menu.js";
2626
import NoteList from "../widgets/collections/NoteList.jsx";
2727
import StandaloneRibbonAdapter from "../widgets/ribbon/components/StandaloneRibbonAdapter.jsx";
2828
import SearchDefinitionTab from "../widgets/ribbon/SearchDefinitionTab.jsx";
29+
import SearchResult from "../widgets/search_result.jsx";
2930

3031
const MOBILE_CSS = `
3132
<style>
@@ -158,6 +159,7 @@ export default class MobileLayout {
158159
.child(new NoteDetailWidget())
159160
.child(<NoteList media="screen" />)
160161
.child(<StandaloneRibbonAdapter component={SearchDefinitionTab} />)
162+
.child(<SearchResult />)
161163
.child(<FilePropertiesWrapper />)
162164
)
163165
.child(<MobileEditorToolbar />)

apps/client/src/widgets/ribbon/SearchDefinitionTab.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@
6262
justify-content: space-evenly;
6363
}
6464

65+
body.mobile .search-definition-widget {
66+
contain: none;
67+
}
68+
6569
@media (max-width: 720px) {
70+
6671
.search-setting-table {
6772
display: block;
6873
font-size: 0.9em;
@@ -159,4 +164,11 @@
159164
align-items: center;
160165
justify-content: center !important;
161166
}
167+
168+
.search-result-widget,
169+
.note-list.list-view,
170+
.note-list-wrapper {
171+
overflow: unset;
172+
height: unset !important;
173+
}
162174
}

0 commit comments

Comments
 (0)