Skip to content

Commit d55bbf1

Browse files
CarlSchwanMichaIng
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 9d9f8d0 commit d55bbf1

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

core/src/components/HeaderMenu.vue

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

165165
<style lang="scss" scoped>
166+
.notifications:not(:empty) ~ #unified-search {
167+
order: -1;
168+
.header-menu__carret {
169+
right: 175px;
170+
}
171+
}
166172
.header-menu {
167173
&__trigger {
168174
display: flex;
@@ -184,10 +190,10 @@ export default {
184190
}
185191
186192
&__wrapper {
187-
position: absolute;
193+
position: fixed;
188194
z-index: 2000;
189195
top: 50px;
190-
right: -150px;
196+
right: 0;
191197
box-sizing: border-box;
192198
margin: 0;
193199
border-radius: 0 0 var(--border-radius) var(--border-radius);
@@ -198,7 +204,7 @@ export default {
198204
199205
&__carret {
200206
position: absolute;
201-
right: 165px;
207+
right: 128px;
202208
bottom: 100%;
203209
width: 0;
204210
height: 0;
@@ -211,7 +217,7 @@ export default {
211217
&__content {
212218
overflow: auto;
213219
width: 350px;
214-
max-width: 350px;
220+
max-width: 100vw;
215221
min-height: calc(44px * 1.5);
216222
max-height: calc(100vh - 50px * 2);
217223
}

core/templates/layout.user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
</div>
104104

105105
<div class="header-right">
106-
<div id="unified-search"></div>
107106
<div id="notifications"></div>
107+
<div id="unified-search"></div>
108108
<div id="contactsmenu">
109109
<div class="icon-contacts menutoggle" tabindex="0" role="button"
110110
aria-haspopup="true" aria-controls="contactsmenu-menu" aria-expanded="false">

0 commit comments

Comments
 (0)