Skip to content

Commit c538af4

Browse files
committed
Fix UnifiedSearch
- Fix too big margins - Fix horizontal scrolbar (caused by margin in text field) - Add some spacing between the items (4px) - Center items (I love flex) Signed-off-by: Carl Schwan <[email protected]>
1 parent 58706dd commit c538af4

5 files changed

Lines changed: 13 additions & 4 deletions

File tree

core/src/components/HeaderMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export default {
195195
border-radius: 0 0 var(--border-radius) var(--border-radius);
196196
background-color: var(--color-main-background);
197197
filter: drop-shadow(0 1px 5px var(--color-box-shadow));
198-
padding: 20px;
198+
padding: 8px;
199199
border-radius: var(--border-radius-large);
200200
}
201201

core/src/components/UnifiedSearch/SearchResult.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ $margin: 10px;
169169
170170
.unified-search__result {
171171
display: flex;
172+
align-items: center;
172173
height: $clickable-area;
173174
padding: $margin;
174175
border-bottom: 1px solid var(--color-border);

core/src/views/UnifiedSearch.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,10 @@ $input-padding: 6px;
713713
}
714714
}
715715
716+
&__form-input {
717+
margin: 0 !important;
718+
}
719+
716720
&__input-row {
717721
display: flex;
718722
width: 100%;
@@ -799,11 +803,15 @@ $input-padding: 6px;
799803
&-header {
800804
display: block;
801805
margin: $margin;
806+
margin-bottom: $margin - 4px;
802807
margin-left: $margin + $input-padding;
803808
color: var(--color-primary-element);
804809
font-weight: normal;
805810
font-size: 18px;
806811
}
812+
display: flex;
813+
flex-direction: column;
814+
gap: 4px;
807815
}
808816
809817
.unified-search__result-more::v-deep {

dist/core-unified-search.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-unified-search.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)