Skip to content

Commit a30a0bf

Browse files
committed
test fix contextmenu & main css
1 parent 0988d4c commit a30a0bf

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

app/components/Viewer/ContextMenu/ContextMenuItem.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ const optionsStyle = computed(() => {
107107
} else if (absoluteButtonY + height / 2 > menuStore.containerHeight - margin) {
108108
offsetY = menuStore.containerHeight - margin - (absoluteButtonY + height / 2);
109109
}
110-
return { top: `calc(50% + ${offsetY}px)` };
110+
return {
111+
top: `${Math.round(offsetY - height / 2)}px`,
112+
transform: "translateY(0)",
113+
};
111114
});
112115
113116
const optionsClass = computed(() => {

app/components/Viewer/Options/ColorPicker.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ watch(pressed, (value) => {
5252
flat
5353
canvas-height="75"
5454
hide-inputs
55+
hide-eye-dropper
5556
width="220"
5657
mode="rgba"
5758
class="mx-auto"
@@ -71,4 +72,8 @@ watch(pressed, (value) => {
7172
:deep(.v-color-picker__preview) {
7273
margin-bottom: 0 !important;
7374
}
75+
76+
:deep(.v-color-picker-preview__eye-dropper) {
77+
display: none !important;
78+
}
7479
</style>

0 commit comments

Comments
 (0)