Skip to content

Commit f54be8e

Browse files
committed
fix: grid크기 수정
1 parent 2d8ad06 commit f54be8e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

frontend/src/components/main/MainLiveSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const MainLiveSection = ({ title }: MainLiveSectionProps) => {
1616
const { data: liveData } = useRecentLive();
1717

1818
const { info, appendInfo } = liveData;
19-
const displayedData = textStatus === VIDEO_VIEW.FOLD ? [...info, ...appendInfo] : info;
19+
const displayedData = [...info, ...appendInfo];
2020

2121
const handleTextChange = () => {
2222
setTextStatus(textStatus === VIDEO_VIEW.MORE_VIEW ? VIDEO_VIEW.FOLD : VIDEO_VIEW.MORE_VIEW);

frontend/src/components/main/MainReplaySection.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const MainReplaySection = ({ title }: MainReplaySectionProps) => {
1616
const { data: replayData } = useRecentReplay();
1717

1818
const { info, appendInfo } = replayData;
19-
const displayedData = textStatus === VIDEO_VIEW.FOLD ? [...info, ...appendInfo] : info;
19+
const displayedData = [...info, ...appendInfo];
2020

2121
const handleTextChange = () => {
2222
setTextStatus(textStatus === VIDEO_VIEW.MORE_VIEW ? VIDEO_VIEW.FOLD : VIDEO_VIEW.MORE_VIEW);
@@ -66,19 +66,22 @@ const MainSectionContentList = styled.div<{ $textStatus: string }>`
6666
6767
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
6868
overflow: ${({ $textStatus }) => ($textStatus === VIDEO_VIEW.MORE_VIEW ? 'hidden' : 'visible')};
69-
max-height: ${({ $textStatus }) => ($textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (320px + 30px) - 30px)' : 'none')};
69+
max-height: ${({ $textStatus }) =>
70+
$textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (320px + 30px) - 30px)' : 'none'};
7071
7172
> div {
7273
max-width: 100%;
7374
}
7475
7576
@media (max-width: 1700px) {
7677
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
77-
max-height: ${({ $textStatus }) => ($textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (320px + 30px) - 30px)' : 'none')};
78+
max-height: ${({ $textStatus }) =>
79+
$textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (320px + 30px) - 30px)' : 'none'};
7880
}
7981
8082
@media (max-width: 1500px) {
8183
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
82-
max-height: ${({ $textStatus }) => ($textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (300px + 30px) - 30px)' : 'none')};
84+
max-height: ${({ $textStatus }) =>
85+
$textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (300px + 30px) - 30px)' : 'none'};
8386
}
8487
`;

0 commit comments

Comments
 (0)