Skip to content

Commit d503993

Browse files
committed
chore(mobile/search): further improve the layout
1 parent fe98ba8 commit d503993

File tree

3 files changed

+34
-6
lines changed

3 files changed

+34
-6
lines changed

apps/client/src/stylesheets/theme-next/pages.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
/* Button bar */
6565
.search-definition-widget .search-setting-table tbody:last-child div {
66-
justify-content: flex-end !important;
66+
justify-content: flex-end;
6767
gap: 8px;
6868
}
6969

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

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,20 @@
5757
background-color: var(--accented-background-color);
5858
}
5959

60+
.search-actions-container {
61+
display: flex;
62+
justify-content: space-evenly;
63+
}
64+
6065
@media (max-width: 720px) {
6166
.search-setting-table {
6267
display: block;
68+
font-size: 0.9em;
6369
}
6470

6571
.search-setting-table tr {
66-
margin: 0.5em 0;
72+
padding: 0.5em 0;
73+
border-bottom: 1px solid var(--main-border-color);
6774
}
6875

6976
.search-setting-table tr,
@@ -73,7 +80,7 @@
7380

7481
.search-setting-table tbody {
7582
display: block;
76-
padding: 0.5em;
83+
padding: 0 1em;
7784
}
7885

7986
.search-setting-table tbody:first-of-type {
@@ -92,6 +99,7 @@
9299
.search-options tr,
93100
.action-options tr {
94101
display: flex;
102+
align-items: center;
95103
}
96104

97105
.action-options tr > td > div {
@@ -106,13 +114,19 @@
106114
.search-setting-table .title-column {
107115
width: unset;
108116
margin-right: 0.5em;
109-
min-width: 20%;
117+
min-width: 30%;
110118
flex-shrink: 0;
111119
}
112120

113121
.search-setting-table .button-column {
114122
flex-grow: 1;
115123
justify-content: end;
124+
overflow: hidden;
125+
flex-shrink: 0;
126+
}
127+
128+
.search-setting-table .button-column .bx-help-circle {
129+
display: none;
116130
}
117131

118132
.search-setting-table tr.orderBy td:nth-of-type(2) {
@@ -131,4 +145,18 @@
131145
flex-shrink: 0;
132146
width: 64px;
133147
}
148+
149+
.search-setting-table tr.ancestor > td > div {
150+
flex-direction: column;
151+
align-items: flex-start !important;
152+
}
153+
154+
.search-actions tr {
155+
border-bottom: 0;
156+
}
157+
158+
.search-actions-container {
159+
align-items: center;
160+
justify-content: center !important;
161+
}
134162
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ export default function SearchDefinitionTab({ note, ntxId }: TabContext) {
111111
})}
112112
</tbody>
113113
<BulkActionsList note={note} />
114-
<tbody>
114+
<tbody className="search-actions">
115115
<tr>
116116
<td colSpan={3}>
117-
<div style={{ display: "flex", justifyContent: "space-evenly" }}>
117+
<div className="search-actions-container">
118118
<Button
119119
icon="bx bx-search"
120120
text={t("search_definition.search_button")}

0 commit comments

Comments
 (0)