aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry/FileEntryActions.vue
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-03-12 12:10:16 -0700
committerChristopher Ng <chrng8@gmail.com>2024-03-12 14:59:46 -0700
commit742e5b6329fac3bdbe1d6f246d7a9c09765fed1d (patch)
tree4cc8d9e8192fa5bee15d667310ee8e353d87ab8a /apps/files/src/components/FileEntry/FileEntryActions.vue
parent26bbb8c0e4c2a0c9718368d2e316fbb9eadb52fc (diff)
downloadnextcloud-server-742e5b6329fac3bdbe1d6f246d7a9c09765fed1d.tar.gz
nextcloud-server-742e5b6329fac3bdbe1d6f246d7a9c09765fed1d.zip
fix(files): Right click menu positioning
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files/src/components/FileEntry/FileEntryActions.vue')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryActions.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue
index 87ffef1fa3a..ff28369049b 100644
--- a/apps/files/src/components/FileEntry/FileEntryActions.vue
+++ b/apps/files/src/components/FileEntry/FileEntryActions.vue
@@ -352,12 +352,13 @@ export default Vue.extend({
<style lang="scss">
// Allow right click to define the position of the menu
// only if defined
-[style*="mouse-pos-x"] .v-popper__popper {
+main.app-content[style*="mouse-pos-x"] .v-popper__popper {
transform: translate3d(var(--mouse-pos-x), var(--mouse-pos-y), 0px) !important;
// If the menu is too close to the bottom, we move it up
&[data-popper-placement="top"] {
- transform: translate3d(var(--mouse-pos-x), calc(var(--mouse-pos-y) - 50vh), 0px) !important;
+ // 34px added to align with the top of the cursor
+ transform: translate3d(var(--mouse-pos-x), calc(var(--mouse-pos-y) - 50vh + 34px), 0px) !important;
}
// Hide arrow if floating
.v-popper__arrow-container {