fix(ui): properly access content's width

This commit is contained in:
Mazen Touati
2025-11-16 19:02:06 +01:00
committed by Mazen Touati
parent 55a05a6b97
commit ed5dfa4664

View File

@@ -10,7 +10,7 @@ export function useResponsiveResizable(
): { thresholds: ComputedRef[] } {
const elementWidth: Ref<number> = 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.