From 89ee6804896a5a2118698be03b252a22d856582f Mon Sep 17 00:00:00 2001 From: Prozilla Date: Thu, 10 Aug 2023 13:31:50 +0200 Subject: [PATCH] Updated image preview in file explorer --- .../applications/file-explorer/FileExplorer.module.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/applications/file-explorer/FileExplorer.module.css b/src/components/applications/file-explorer/FileExplorer.module.css index 0c315f2..51b515a 100644 --- a/src/components/applications/file-explorer/FileExplorer.module.css +++ b/src/components/applications/file-explorer/FileExplorer.module.css @@ -144,6 +144,9 @@ } .File-button-preview { + display: flex; + justify-content: center; + align-items: center; height: 100%; overflow: hidden; } @@ -154,6 +157,12 @@ object-fit: contain; } +.File-button-preview > img { + height: auto; + max-height: 100%; + border-radius: 0.5rem; +} + .File-button svg, .Folder-button svg { width: 50%; height: auto;