mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 18:49:00 +01:00
chore(mobile/search): further improve the layout
This commit is contained in:
parent
fe98ba8c8c
commit
d503993a74
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
@ -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">
|
||||
<Button
|
||||
icon="bx bx-search"
|
||||
text={t("search_definition.search_button")}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user