Skip to content

Commit 25a4914

Browse files
CarlSchwannextcloud-command
authored andcommitted
Fix position of search bar
Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 3c7f642 commit 25a4914

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

core/js/dist/unified-search.js

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

core/js/dist/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.

core/src/components/HeaderMenu.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ export default {
154154
</script>
155155

156156
<style lang="scss" scoped>
157+
.notifications:not(:empty) ~ #unified-search {
158+
order: -1;
159+
.header-menu__carret {
160+
right: 175px;
161+
}
162+
}
157163
.header-menu {
158164
&__trigger {
159165
display: flex;
@@ -175,10 +181,10 @@ export default {
175181
}
176182
177183
&__wrapper {
178-
position: absolute;
184+
position: fixed;
179185
z-index: 2000;
180186
top: 50px;
181-
right: -150px;
187+
right: 0;
182188
box-sizing: border-box;
183189
margin: 0;
184190
border-radius: 0 0 var(--border-radius) var(--border-radius);
@@ -189,7 +195,7 @@ export default {
189195
190196
&__carret {
191197
position: absolute;
192-
right: 165px;
198+
right: 128px;
193199
bottom: 100%;
194200
width: 0;
195201
height: 0;
@@ -202,7 +208,7 @@ export default {
202208
&__content {
203209
overflow: auto;
204210
width: 350px;
205-
max-width: 350px;
211+
max-width: 100vw;
206212
min-height: calc(44px * 1.5);
207213
max-height: calc(100vh - 50px * 2);
208214
}

0 commit comments

Comments
 (0)