center stickers in pack preview on mobile

This commit is contained in:
Kentai Radiquum 2024-12-29 13:55:39 +05:00
parent a2a64f49bb
commit 31f4aee1e8
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 14 additions and 2 deletions

View file

@ -133,7 +133,7 @@ function updatePackInfo(data) {
const stickerImage = document.createElement("img");
stickerImage.src = getStickerImage(sticker.id);
stickerImage.alt = sticker.body;
stickerImage.classList.add('object-contain', 'w-20')
stickerImage.classList.add('object-contain', 'md:w-20', "w-24")
packStickers.appendChild(stickerImage);
}
}

View file

@ -657,6 +657,10 @@ video {
width: 100%;
}
.w-24 {
width: 6rem;
}
.max-w-\[90\%\] {
max-width: 90%;
}
@ -847,6 +851,14 @@ video {
width: 600px;
}
.md\:w-24 {
width: 6rem;
}
.md\:w-20 {
width: 5rem;
}
.md\:max-w-\[768px\] {
max-width: 768px;
}