Skip to content

Commit

Permalink
๐Ÿ”จ Refactor(#100): SortDropdown top ์†์„ฑ ์ œ๊ฑฐ ํ›„ height ๊ฐ™์€ ๊ฐ’์œผ๋กœ ๋Œ€์ฒด
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetree7878 committed Jan 15, 2025
1 parent 319a76b commit 5323b24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/common/layout/SortDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ interface SortDropDownProps<T extends Record<PropertyKey, any>> {
width?: string; // ๋„ˆ๋น„
height?: string; // ๋†’์ด
fontSize?: string; // ๊ธ€์ž ์‚ฌ์ด์ฆˆ
top?: string; // li, ul ์‚ฌ์ด ๊ฑฐ๋ฆฌ
ulFontColor?: string; // ul ํฐํŠธ ์ƒ‰
liFontColor?: string; // li ํฐํŠธ ์ƒ‰
ulBackgroundColor?: string; // ul ๋ฐฐ๊ฒฝ ์ƒ‰
Expand Down Expand Up @@ -57,7 +56,6 @@ export default function SortDropdown<T extends Record<PropertyKey, any>>({
width,
height,
fontSize,
top,
ulFontColor,
liFontColor,
ulBackgroundColor,
Expand Down Expand Up @@ -90,7 +88,7 @@ export default function SortDropdown<T extends Record<PropertyKey, any>>({
{isOpen && (
<S.SortOptionUl
$width={width}
$top={top}
$height={height}
$backgroundColor={ulBackgroundColor}
$fontColor={ulFontColor}
$borderColor={borderColor}
Expand Down
4 changes: 2 additions & 2 deletions src/common/layout/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ export const SortSelectButton = styled.button<{
`;

export const SortOptionUl = styled.ul<{
$top?: string;
$width?: string;
$height?: string;
$backgroundColor?: string;
$fontColor?: string;
$borderColor?: string;
}>`
position: absolute;
top: ${({ $top }) => $top};
top: ${({ $height }) => $height};
width: ${({ $width }) => $width};
border-radius: 0 0 15px 15px;
background-color: ${({ $backgroundColor }) => $backgroundColor};
Expand Down
1 change: 0 additions & 1 deletion src/features/ranking/ui/RankingContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default function RankingContainer({
width="136px"
height="30px"
fontSize="12px"
top="30px"
ulFontColor="#FFF3C0"
liFontColor="#D37744"
ulBackgroundColor="#d37744"
Expand Down

0 comments on commit 5323b24

Please sign in to comment.