From ed5dfa46643545dc1902e68219f2d838e87e3b10 Mon Sep 17 00:00:00 2001 From: Mazen Touati Date: Sun, 16 Nov 2025 19:02:06 +0100 Subject: [PATCH] fix(ui): properly access content's width --- resources/js/composables/ui/useResponsiveResizable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/composables/ui/useResponsiveResizable.ts b/resources/js/composables/ui/useResponsiveResizable.ts index bf60433..46b4f6c 100644 --- a/resources/js/composables/ui/useResponsiveResizable.ts +++ b/resources/js/composables/ui/useResponsiveResizable.ts @@ -10,7 +10,7 @@ export function useResponsiveResizable( ): { thresholds: ComputedRef[] } { const elementWidth: Ref = ref( // @ts-expect-error it is a mess to annotate the element properly. - element.value?.$el?.contentRect.with ?? window.screen.width, + element.value?.$el?.contentRect.width ?? window.screen.width, ); // @ts-expect-error it is a mess to annotate the element properly.