From 6a065df685c291d1729fb8eb0ec3b6364527fbde Mon Sep 17 00:00:00 2001 From: 0x01fe Date: Thu, 4 Apr 2024 14:25:04 -0500 Subject: [PATCH] kind of fixed the sizing for the album covers --- app/app.py | 2 +- app/static/albumsquare.css | 12 ------------ app/templates/album_square.html | 2 +- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/app/app.py b/app/app.py index d3f6ba5..a28e1e1 100644 --- a/app/app.py +++ b/app/app.py @@ -177,7 +177,7 @@ def album_square(user_id, rows : int): limit = rows ** 2 - res = 100/(rows+2) + res = (1080/(rows))-rows # Get top albums r = requests.get( diff --git a/app/static/albumsquare.css b/app/static/albumsquare.css index 0f1cb6c..1044b3d 100644 --- a/app/static/albumsquare.css +++ b/app/static/albumsquare.css @@ -1,23 +1,11 @@ .albums { height: 100%; - height: fit-content; - align-self: flex-start; - border-style: var(--borders-style); - border-radius: var(--border-radius); - border-color: #1E2022; - background-color: var(--main-background); - - /* Text Settings - font-weight: bold; - line-height: 30pt; */ line-height: 0; font-size: 0; } .albums img { - height: 100px; - width: 100px; padding: 0 0; margin: 0 0; border: 0 0; diff --git a/app/templates/album_square.html b/app/templates/album_square.html index dfd49b7..ca6d024 100644 --- a/app/templates/album_square.html +++ b/app/templates/album_square.html @@ -9,7 +9,7 @@
{% for album in top_albums %} - + {% if loop.index % limit == 0 %}