1 parent 8c67316 commit db6f19eCopy full SHA for db6f19e
1 file changed
web/src/components/LegendItem.vue
@@ -11,7 +11,8 @@ const POPOVER_WIDTH = 256;
11
const MARGIN = 8;
12
13
const button = ref<HTMLElement | null>(null);
14
-const align = ref<"center" | "left" | "right">("center");
+// Right-anchored while hidden so the invisible panel never widens the page; placed properly on hover.
15
+const align = ref<"center" | "left" | "right">("right");
16
17
/** Keeps the popover inside the viewport by anchoring it to whichever edge has room. */
18
function place() {
0 commit comments