add sticker count

This commit is contained in:
Kentai Radiquum 2024-12-29 13:51:47 +05:00
parent 101036f9c7
commit a2a64f49bb
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 6 additions and 10 deletions

View file

@ -3,6 +3,8 @@ const packName = document.getElementById("preview_sticker_pack_name");
const packAuthor_by = document.getElementById("preview_sticker_pack_author_by");
const packAuthor = document.getElementById("preview_sticker_pack_author");
const packImage = document.getElementById("preview_sticker_pack_image");
const packStickersC = document.getElementById("preview_sticker_pack_stickers_container");
const packStickersCount = document.getElementById("preview_sticker_pack_stickers_count");
const packStickers = document.getElementById("preview_sticker_pack_stickers");
const packLinkTG = document.getElementById("preview_sticker_pack_add_tg");
const packLinkFC = document.getElementById("preview_sticker_pack_add_fc");
@ -124,6 +126,8 @@ function updatePackInfo(data) {
packLinkCI.classList.add("flex");
}
packStickersC.classList.remove('hidden')
packStickersCount.innerHTML = `(${data.stickers.length})`;
for (let i = 0; i < data.stickers.length; i++) {
const sticker = data.stickers[i];
const stickerImage = document.createElement("img");

View file

@ -588,10 +588,6 @@ video {
}
}
.static {
position: static;
}
.fixed {
position: fixed;
}
@ -600,10 +596,6 @@ video {
position: absolute;
}
.sticky {
position: sticky;
}
.inset-0 {
inset: 0px;
}