From 50ba7408b93ecf2ec76662f43a06def800c9ac9a Mon Sep 17 00:00:00 2001 From: Dapoulp <74197441+Dapoulp@users.noreply.github.com> Date: Sun, 20 Jul 2025 03:58:31 +0200 Subject: [PATCH] Fix item desc animation (#382) --- styles/less/global/inventory-item.less | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/styles/less/global/inventory-item.less b/styles/less/global/inventory-item.less index d758085b..077ae165 100644 --- a/styles/less/global/inventory-item.less +++ b/styles/less/global/inventory-item.less @@ -113,12 +113,14 @@ margin-bottom: 5px; } &.extensible { - max-height: 0; - overflow: hidden; - transition: max-height 0.5s ease-in-out; + display: grid; + grid-template-rows: 0fr; + transition: grid-template-rows 0.3s ease-in-out; &.extended { - max-height: 500px; - overflow: auto; + grid-template-rows: 1fr; + } + .invetory-description { + overflow: hidden; } } .item-resources {