Some broadcast list fixes

- При скроллинге вниз на странице с аудио вкладки не идут за вами (баговано)
- Теперь перемешка списка друзей на странице аудио должна работать нормально
This commit is contained in:
lalka2018 2023-11-12 17:02:33 +03:00
parent 1632d54d52
commit 08499cd3b4
2 changed files with 4 additions and 4 deletions

View file

@ -1267,14 +1267,14 @@ class User extends RowModel
$entityIds[] = $_rel->model == "openvk\\Web\\Models\\Entities\\Club" ? $_rel->target * -1 : $_rel->target; $entityIds[] = $_rel->model == "openvk\\Web\\Models\\Entities\\Club" ? $_rel->target * -1 : $_rel->target;
} }
$entityIds = array_slice($entityIds, 0, 10);
if($shuffle) { if($shuffle) {
$shuffleSeed = openssl_random_pseudo_bytes(6); $shuffleSeed = openssl_random_pseudo_bytes(6);
$shuffleSeed = hexdec(bin2hex($shuffleSeed)); $shuffleSeed = hexdec(bin2hex($shuffleSeed));
$entityIds = knuth_shuffle($entityIds, $shuffleSeed); $entityIds = knuth_shuffle($entityIds, $shuffleSeed);
} }
$entityIds = array_slice($entityIds, 0, 10);
$returnArr = []; $returnArr = [];

View file

@ -651,10 +651,10 @@ document.addEventListener("DOMContentLoaded", function() {
entries.forEach(x => { entries.forEach(x => {
if(x.isIntersecting) { if(x.isIntersecting) {
document.querySelector('.bigPlayer').classList.remove("floating") 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" document.querySelector('.bigPlayerDetector').style.marginTop = "0px"
} else { } else {
document.querySelector('.searchOptions .searchList').classList.add("floating") //document.querySelector('.searchOptions .searchList').classList.add("floating")
document.querySelector('.bigPlayer').classList.add("floating") document.querySelector('.bigPlayer').classList.add("floating")
document.querySelector('.bigPlayerDetector').style.marginTop = "46px" document.querySelector('.bigPlayerDetector').style.marginTop = "46px"
} }