From b9f7090e96fba8f64d0a71eeb9e4eaf9cd7469e9 Mon Sep 17 00:00:00 2001 From: Starnakin Date: Tue, 6 May 2025 19:24:56 +0200 Subject: [PATCH] add: center img without deform it --- src/templates/album.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/templates/album.css b/src/templates/album.css index 130f82b..eb9b0aa 100644 --- a/src/templates/album.css +++ b/src/templates/album.css @@ -28,14 +28,13 @@ body { } img { - width: 100%; - height: auto; + object-fit: contain } a { display: flex; flex-direction: row; - align-items: center; + justify-content: center; background-color: var(--content1); padding: 10px; margin: 10px;