views: fill the photo rail grid evenly

Co-authored-by: entailz <[email protected]>
This commit is contained in:
Amaan Qureshi
2026-08-29 22:35:17 -04:00
co-authored by entailz
parent 2df877c74a
commit 4f08ae5fe5
+1 -1
View File
@@ -409,7 +409,7 @@ fn render_photo_rail(photos: &[GalleryPhoto], user: &User, config: &Config) -> M
}
div class="photo-rail-grid" {
@for photo in photos.iter().take(16) {
@for photo in photos.iter().take(15) {
@let photo_suffix = if photo.url.contains("format") || photo.url.contains("placeholder") { "" } else { ":thumb" };
a href=(format!("/{}/status/{}#m", user.username, photo.tweet_id)) {
(gen_img(&format!("{}{}", photo.url, photo_suffix), "", config))