mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
Merge pull request #32703 from nextcloud/fix/carret_position
Properly calculate carret position
This commit is contained in:
commit
dcf25d6c77
3 changed files with 7 additions and 12 deletions
|
|
@ -33,11 +33,11 @@
|
|||
@click.prevent="toggleMenu">
|
||||
<slot name="trigger" />
|
||||
</a>
|
||||
<div v-show="opened" class="header-menu__carret" />
|
||||
<div v-show="opened"
|
||||
:id="`header-menu-${id}`"
|
||||
class="header-menu__wrapper"
|
||||
role="menu">
|
||||
<div class="header-menu__carret" />
|
||||
<div class="header-menu__content">
|
||||
<slot />
|
||||
</div>
|
||||
|
|
@ -162,12 +162,6 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.notifications:not(:empty) ~ #unified-search {
|
||||
order: -1;
|
||||
.header-menu__carret {
|
||||
right: 175px;
|
||||
}
|
||||
}
|
||||
.header-menu {
|
||||
&__trigger {
|
||||
display: flex;
|
||||
|
|
@ -207,8 +201,9 @@ export default {
|
|||
|
||||
&__carret {
|
||||
position: absolute;
|
||||
right: 128px;
|
||||
bottom: 100%;
|
||||
z-index: 2001; // Because __wrapper is 2000.
|
||||
left: calc(50% - 10px);
|
||||
bottom: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
content: ' ';
|
||||
|
|
|
|||
4
dist/core-unified-search.js
vendored
4
dist/core-unified-search.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-unified-search.js.map
vendored
2
dist/core-unified-search.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue