ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

Sidebar Component Inconsistency with Mobile Detection Hook

Open ahmoin opened this issue 11 months ago • 0 comments

The sidebar component is using the useIsMobile() hook from use-mobile.tsx instead of using useWindowSize() hook from usehooks-ts, which is what the other components use to check for mobile screens.

const { width } = useWindowSize();
const isMobile = width < 768;

ahmoin avatar Dec 01 '24 04:12 ahmoin