From 08499cd3b4dd3ff575e6819fd8931d20f6647f7a Mon Sep 17 00:00:00 2001 From: lalka2018 <99399973+lalka2016@users.noreply.github.com> Date: Sun, 12 Nov 2023 17:02:33 +0300 Subject: [PATCH] Some broadcast list fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - При скроллинге вниз на странице с аудио вкладки не идут за вами (баговано) - Теперь перемешка списка друзей на странице аудио должна работать нормально --- Web/Models/Entities/User.php | 4 ++-- Web/static/js/al_music.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Web/Models/Entities/User.php b/Web/Models/Entities/User.php index 66b93713..40ef7aef 100644 --- a/Web/Models/Entities/User.php +++ b/Web/Models/Entities/User.php @@ -1267,14 +1267,14 @@ class User extends RowModel $entityIds[] = $_rel->model == "openvk\\Web\\Models\\Entities\\Club" ? $_rel->target * -1 : $_rel->target; } - $entityIds = array_slice($entityIds, 0, 10); - if($shuffle) { $shuffleSeed = openssl_random_pseudo_bytes(6); $shuffleSeed = hexdec(bin2hex($shuffleSeed)); $entityIds = knuth_shuffle($entityIds, $shuffleSeed); } + + $entityIds = array_slice($entityIds, 0, 10); $returnArr = []; diff --git a/Web/static/js/al_music.js b/Web/static/js/al_music.js index 85952a00..691b6edb 100644 --- a/Web/static/js/al_music.js +++ b/Web/static/js/al_music.js @@ -651,10 +651,10 @@ document.addEventListener("DOMContentLoaded", function() { entries.forEach(x => { if(x.isIntersecting) { document.querySelector('.bigPlayer').classList.remove("floating") - document.querySelector('.searchOptions .searchList').classList.remove("floating") + //document.querySelector('.searchOptions .searchList').classList.remove("floating") document.querySelector('.bigPlayerDetector').style.marginTop = "0px" } else { - document.querySelector('.searchOptions .searchList').classList.add("floating") + //document.querySelector('.searchOptions .searchList').classList.add("floating") document.querySelector('.bigPlayer').classList.add("floating") document.querySelector('.bigPlayerDetector').style.marginTop = "46px" }