Sidebar fix on iPad (#12705)

* ipad sidebar fix

* ipad sidebar fix
This commit is contained in:
ludwiczakpawel 2021-02-22 17:41:16 +01:00 committed by GitHub
parent 60be1d6def
commit 57bc51e65f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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