diff --git a/src/components/ContextMenu.vue b/src/components/ContextMenu.vue index ebedaae0..7b21ff4e 100644 --- a/src/components/ContextMenu.vue +++ b/src/components/ContextMenu.vue @@ -1,22 +1,8 @@ @@ -34,9 +21,12 @@ import { ref } from "vue"; import { onClickOutside } from "@vueuse/core"; import useContextStore from "../stores/context"; -import ContextItem from "./Contextmenu/ContextItem.vue"; -const context = useContextStore(); +import useSettingsStore from "../stores/settings"; +import ContextItem from "./Contextmenu/ContextItem.vue"; + +const context = useContextStore(); +const settings = useSettingsStore(); const contextMenu = ref(); let clickCount = 0; @@ -64,6 +54,7 @@ onClickOutside(contextMenu, (e) => { width: 12rem; z-index: 10000 !important; transform: scale(0); + height: min-content; padding: $small 0; background: $context; @@ -81,32 +72,4 @@ onClickOutside(contextMenu, (e) => { } } } - -.context-menu-visible { - transform: scale(1); -} - -.context-normalizedX { - .more { - transform: rotate(180deg); - } - - .context-item > .children { - left: -13rem; - transform-origin: center right; - } -} - -.context-normalizedY { - .context-item > .children { - transform-origin: bottom right; - top: -0.5rem; - } -} - -.context-many-kids { - .context-item > .children { - overflow-y: auto; - } -} diff --git a/src/components/Contextmenu/ContextItem.vue b/src/components/Contextmenu/ContextItem.vue index a2b40b2d..a38da6bc 100644 --- a/src/components/Contextmenu/ContextItem.vue +++ b/src/components/Contextmenu/ContextItem.vue @@ -1,15 +1,33 @@ diff --git a/src/components/SettingsView/Group.vue b/src/components/SettingsView/Group.vue index 677537c4..0a33734a 100644 --- a/src/components/SettingsView/Group.vue +++ b/src/components/SettingsView/Group.vue @@ -19,6 +19,12 @@ @click="setting.action()" :state="setting.source()" /> +