From f1f685e7ac7d15c78b2c2ae45f15b17662fc3fdb Mon Sep 17 00:00:00 2001 From: torcado194 Date: Tue, 5 Apr 2022 18:15:30 -0400 Subject: [PATCH] shorten height if no description --- index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c95b945..64a3255 100644 --- a/index.html +++ b/index.html @@ -60,7 +60,6 @@ left: 0; right: 0; margin: auto; - margin-bottom: 40px; } #mainContainer.vertical { @@ -605,9 +604,15 @@ /* description */ #description { + display: none; padding: 8px; margin-top: 24px; word-break: break-word; + margin-bottom: 40px; + } + + #description.active { + display: block; } @@ -800,7 +805,10 @@ } } function updateDescription(description){ - if(description !== undefined){ + if(description === undefined || description === ''){ + descriptionEl.classList.remove('active'); + } else { + descriptionEl.classList.add('active'); config.description = description; descriptionEl.innerHTML = description; }