Skip to content

Commit 02ff6c7

Browse files
authored
Merge pull request #140 from PepperStones/develop
๐Ÿ›fix: ์•ฑ ํ™˜๊ฒฝ์—์„œ ์ด๋ฏธ์ง€ ๋ณด๋” ์ƒ๊ธฐ๋Š” ์ด์Šˆ
2 parents f75c859 + 5130a53 commit 02ff6c7

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

โ€Žsrc/components/star/StarAnimation.tsxโ€Ž

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,12 @@ const Deco = styled.img`
736736
-webkit-appearance: none;
737737
-moz-appearance: none;
738738
appearance: none;
739+
740+
&[src=""],
741+
&:not([src]) {
742+
visibility: hidden;
743+
display: none;
744+
}
739745
`;
740746

741747
const DecoContainer = styled.div`
@@ -751,6 +757,9 @@ const DecoContainer = styled.div`
751757
-webkit-appearance: none;
752758
-moz-appearance: none;
753759
appearance: none;
760+
&:empty {
761+
display: none;
762+
}
754763
`;
755764

756765
const EfectContainer = styled.div`
@@ -763,6 +772,11 @@ const EfectContainer = styled.div`
763772
-webkit-appearance: none;
764773
-moz-appearance: none;
765774
appearance: none;
775+
&[src=""],
776+
&:not([src]) {
777+
visibility: hidden;
778+
display: none;
779+
}
766780
`;
767781

768782
const Effect = styled.img`
@@ -779,4 +793,7 @@ const Effect = styled.img`
779793
-webkit-appearance: none;
780794
-moz-appearance: none;
781795
appearance: none;
796+
&:empty {
797+
display: none;
798+
}
782799
`;

0 commit comments

Comments
ย (0)