From 2360f57f1ed51dd51bf3347d310c11001b9e1477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=87ince?= Date: Tue, 10 Dec 2024 00:38:42 -0800 Subject: [PATCH] embedded image adjustment for roll templates --- ADnD_1E_Revised/1ESheet.css | 10 +++++++--- ADnD_1E_Revised/1ESheet.html | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ADnD_1E_Revised/1ESheet.css b/ADnD_1E_Revised/1ESheet.css index 1b6af202a420..a73aa778b163 100644 --- a/ADnD_1E_Revised/1ESheet.css +++ b/ADnD_1E_Revised/1ESheet.css @@ -3731,14 +3731,18 @@ details[open].thac0-box { /*images*/ .sheet-rolltemplate-attacks a img, .sheet-rolltemplate-general a img { - aspect-ratio: 1; + aspect-ratio: auto; display: flex; flex-direction: row; - max-height: 300px; + justify-self: center; + margin: auto; + max-height: 50vw; + max-width: fit-content; object-fit: contain; object-position: center; + outline: 2px solid #000; overflow: clip; - margin: auto; + width: calc(100% - 5px); } .sheet-rolltemplate-attacks .sheet-subheader a img, diff --git a/ADnD_1E_Revised/1ESheet.html b/ADnD_1E_Revised/1ESheet.html index be113ba104e9..8ccb0d37cfb2 100644 --- a/ADnD_1E_Revised/1ESheet.html +++ b/ADnD_1E_Revised/1ESheet.html @@ -66,6 +66,8 @@
• 12/8/24'