Skip to content

Commit db6f19e

Browse files
committed
web: hidden legend popovers no longer widen the page
1 parent 8c67316 commit db6f19e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

web/src/components/LegendItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const POPOVER_WIDTH = 256;
1111
const MARGIN = 8;
1212
1313
const button = ref<HTMLElement | null>(null);
14-
const align = ref<"center" | "left" | "right">("center");
14+
// Right-anchored while hidden so the invisible panel never widens the page; placed properly on hover.
15+
const align = ref<"center" | "left" | "right">("right");
1516
1617
/** Keeps the popover inside the viewport by anchoring it to whichever edge has room. */
1718
function place() {

0 commit comments

Comments
 (0)