Browse Source

Fix position of search bar

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
tags/v23.0.0beta1
Carl Schwan 2 years ago
parent
commit
4027bba202

+ 5
- 5
core/js/dist/unified-search.js
File diff suppressed because it is too large
View File


+ 1
- 1
core/js/dist/unified-search.js.map
File diff suppressed because it is too large
View File


+ 10
- 4
core/src/components/HeaderMenu.vue View File

</script> </script>


<style lang="scss" scoped> <style lang="scss" scoped>
.notifications:not(:empty) ~ #unified-search {
order: -1;
.header-menu__carret {
right: 175px;
}
}
.header-menu { .header-menu {
&__trigger { &__trigger {
display: flex; display: flex;
} }


&__wrapper { &__wrapper {
position: absolute;
position: fixed;
z-index: 2000; z-index: 2000;
top: 50px; top: 50px;
right: -150px;
right: 0;
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
border-radius: 0 0 var(--border-radius) var(--border-radius); border-radius: 0 0 var(--border-radius) var(--border-radius);


&__carret { &__carret {
position: absolute; position: absolute;
right: 165px;
right: 128px;
bottom: 100%; bottom: 100%;
width: 0; width: 0;
height: 0; height: 0;
&__content { &__content {
overflow: auto; overflow: auto;
width: 350px; width: 350px;
max-width: 350px;
max-width: 100vw;
min-height: calc(44px * 1.5); min-height: calc(44px * 1.5);
max-height: calc(100vh - 50px * 2); max-height: calc(100vh - 50px * 2);
} }

+ 1
- 1
core/templates/layout.user.php View File

</div> </div>


<div class="header-right"> <div class="header-right">
<div id="unified-search"></div>
<div id="notifications"></div> <div id="notifications"></div>
<div id="unified-search"></div>
<div id="contactsmenu"> <div id="contactsmenu">
<div class="icon-contacts menutoggle" tabindex="0" role="button" <div class="icon-contacts menutoggle" tabindex="0" role="button"
aria-haspopup="true" aria-controls="contactsmenu-menu" aria-expanded="false"> aria-haspopup="true" aria-controls="contactsmenu-menu" aria-expanded="false">

Loading…
Cancel
Save