From 6722224d6c6e49ea46da0d536d83e7b720cb7009 Mon Sep 17 00:00:00 2001 From: Avinash Biradar Date: Tue, 24 Oct 2023 11:55:02 +0530 Subject: [PATCH 1/2] final changes --- src/pages/box-shadow.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/box-shadow.ts b/src/pages/box-shadow.ts index a6f85ad7..3bd87878 100644 --- a/src/pages/box-shadow.ts +++ b/src/pages/box-shadow.ts @@ -69,13 +69,13 @@ export function boxShadowGenerator( const color = getShadowColor(attribute); const getOutputElement = getOutput(attribute); const resultPage = getResultPage(); - + const element = boxshadowInputs[0]; const value = element.value; if (value.length < 3) { getOpenSideBarButton().style.display = 'none'; - }else{ + } else { getOpenSideBarButton().style.display = 'flex'; resultPage.style.display = 'flex'; } @@ -153,7 +153,6 @@ export function addBoxShadowListener(): void { allBoxShadowInputsFields[idx].textContent = `${input.value}px`; } input.addEventListener('input', () => { - if (color.value === '') return; slideIn(preview, isSliderOpen); isSliderOpen = true; From 2537999b7dab830f13f497ba4a76a364294f7d72 Mon Sep 17 00:00:00 2001 From: Avinash Biradar <74947684+avibiradar100@users.noreply.github.com> Date: Tue, 24 Oct 2023 12:05:21 +0530 Subject: [PATCH 2/2] Update box-shadow.ts --- src/pages/box-shadow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/box-shadow.ts b/src/pages/box-shadow.ts index 3bd87878..9a4e10de 100644 --- a/src/pages/box-shadow.ts +++ b/src/pages/box-shadow.ts @@ -69,13 +69,13 @@ export function boxShadowGenerator( const color = getShadowColor(attribute); const getOutputElement = getOutput(attribute); const resultPage = getResultPage(); - + const element = boxshadowInputs[0]; const value = element.value; if (value.length < 3) { getOpenSideBarButton().style.display = 'none'; - } else { + }else{ getOpenSideBarButton().style.display = 'flex'; resultPage.style.display = 'flex'; }