From 57bc51e65f94f18fa8d84a4cab1386a8d7039693 Mon Sep 17 00:00:00 2001 From: ludwiczakpawel Date: Mon, 22 Feb 2021 17:41:16 +0100 Subject: [PATCH] Sidebar fix on iPad (#12705) * ipad sidebar fix * ipad sidebar fix --- app/javascript/packs/homePage.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/packs/homePage.jsx b/app/javascript/packs/homePage.jsx index 0f7052299..cd69fb6c7 100644 --- a/app/javascript/packs/homePage.jsx +++ b/app/javascript/packs/homePage.jsx @@ -48,10 +48,10 @@ function renderTagsFollowed(user = userData()) { function renderSidebar() { const sidebarContainer = document.getElementById('sidebar-wrapper-right'); - // If the screen's width is less than 1024px we don't need this extra data. + // If the screen's width is less than 640 we don't need this extra data. if ( sidebarContainer && - screen.width > 1023 && + screen.width >= 640 && window.location.pathname === '/' ) { window