From d0fea09daac7969c874aa25e54e7072ce82c3c43 Mon Sep 17 00:00:00 2001 From: graphieros Date: Sun, 12 Apr 2026 21:58:30 +0200 Subject: [PATCH 1/4] fix: improve compare scatter chart legend --- app/components/Compare/FacetScatterChart.vue | 92 ++++++++++++++------ 1 file changed, 63 insertions(+), 29 deletions(-) diff --git a/app/components/Compare/FacetScatterChart.vue b/app/components/Compare/FacetScatterChart.vue index a0de43bb25..582e05fb06 100644 --- a/app/components/Compare/FacetScatterChart.vue +++ b/app/components/Compare/FacetScatterChart.vue @@ -16,8 +16,12 @@ const props = defineProps<{ const colorMode = useColorMode() const resolvedMode = shallowRef<'light' | 'dark'>('light') const rootEl = shallowRef(null) +const { width } = useElementSize(rootEl) const { copy, copied } = useClipboard() +const mobileBreakpointWidth = 640 +const isMobile = computed(() => width.value > 0 && width.value < mobileBreakpointWidth) + const { colors } = useCssVariables( [ '--bg', @@ -277,6 +281,13 @@ const highlightedAxis = shallowRef(null) function toggleAxisHighlight(state: AxisHighlight) { highlightedAxis.value = state } + +const readyTeleport = shallowRef(false) + +onMounted(async () => { + await nextTick() + readyTeleport.value = true +}) - From 78b668bbbac36504af4feba5db79e238995eeeee Mon Sep 17 00:00:00 2001 From: graphieros Date: Sun, 12 Apr 2026 22:06:56 +0200 Subject: [PATCH 2/4] fix: add missing a11y in inner teleport target --- app/components/Compare/FacetScatterChart.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/Compare/FacetScatterChart.vue b/app/components/Compare/FacetScatterChart.vue index 582e05fb06..21f7a7bf72 100644 --- a/app/components/Compare/FacetScatterChart.vue +++ b/app/components/Compare/FacetScatterChart.vue @@ -370,7 +370,11 @@ onMounted(async () => {