Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(mobile/search): further improve the layout
Elian Dorand503993a74f2
diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.cssindex d0c092321d..8b5a9ed9af 100644--- a/apps/client/src/stylesheets/theme-next/pages.css+++ b/apps/client/src/stylesheets/theme-next/pages.css@@ -63,7 +63,7 @@/* Button bar */.search-definition-widget .search-setting-table tbody:last-child div {- justify-content: flex-end !important;+ justify-content: flex-end;gap: 8px;}diff --git a/apps/client/src/widgets/ribbon/SearchDefinitionTab.css b/apps/client/src/widgets/ribbon/SearchDefinitionTab.cssindex de499a0e67..640727c98b 100644--- a/apps/client/src/widgets/ribbon/SearchDefinitionTab.css+++ b/apps/client/src/widgets/ribbon/SearchDefinitionTab.css@@ -57,13 +57,20 @@background-color: var(--accented-background-color);}+.search-actions-container {+ display: flex;+ justify-content: space-evenly;+}+@media (max-width: 720px) {.search-setting-table {display: block;+ font-size: 0.9em;}.search-setting-table tr {- margin: 0.5em 0;+ padding: 0.5em 0;+ border-bottom: 1px solid var(--main-border-color);}.search-setting-table tr,@@ -73,7 +80,7 @@.search-setting-table tbody {display: block;- padding: 0.5em;+ padding: 0 1em;}.search-setting-table tbody:first-of-type {@@ -92,6 +99,7 @@.search-options tr,.action-options tr {display: flex;+ align-items: center;}.action-options tr > td > div {@@ -106,13 +114,19 @@.search-setting-table .title-column {width: unset;margin-right: 0.5em;- min-width: 20%;+ min-width: 30%;flex-shrink: 0;}.search-setting-table .button-column {flex-grow: 1;justify-content: end;+ overflow: hidden;+ flex-shrink: 0;+ }++ .search-setting-table .button-column .bx-help-circle {+ display: none;}.search-setting-table tr.orderBy td:nth-of-type(2) {@@ -131,4 +145,18 @@flex-shrink: 0;width: 64px;}++ .search-setting-table tr.ancestor > td > div {+ flex-direction: column;+ align-items: flex-start !important;+ }++ .search-actions tr {+ border-bottom: 0;+ }++ .search-actions-container {+ align-items: center;+ justify-content: center !important;+ }}\ No newline at end of filediff --git a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsxindex faf1e2dc05..2961e32ab6 100644--- a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx+++ b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx@@ -111,10 +111,10 @@ export default function SearchDefinitionTab({ note, ntxId }: TabContext) {})}</tbody><BulkActionsList note={note} />- <tbody>+ <tbody className="search-actions"><tr><td colSpan={3}>- <div style={{ display: "flex", justifyContent: "space-evenly" }}>+ <div className="search-actions-container"><Buttonicon="bx bx-search"text={t("search_definition.search_button")}