diff --git a/app/components/Compare/FacetScatterChart.vue b/app/components/Compare/FacetScatterChart.vue index a0de43bb25..c21ea2c32e 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 +})