Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/prod-fe' into prod-fe
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeeeeeh committed Dec 2, 2024
2 parents d654978 + 95bc81c commit c970248
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/main/MainLiveSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const MainLiveSection = ({ title }: MainLiveSectionProps) => {
const { data: liveData } = useRecentLive();

const { info, appendInfo } = liveData;
const displayedData = textStatus === VIDEO_VIEW.FOLD ? [...info, ...appendInfo] : info;
const displayedData = [...info, ...appendInfo];

const handleTextChange = () => {
setTextStatus(textStatus === VIDEO_VIEW.MORE_VIEW ? VIDEO_VIEW.FOLD : VIDEO_VIEW.MORE_VIEW);
Expand Down
11 changes: 7 additions & 4 deletions frontend/src/components/main/MainReplaySection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const MainReplaySection = ({ title }: MainReplaySectionProps) => {
const { data: replayData } = useRecentReplay();

const { info, appendInfo } = replayData;
const displayedData = textStatus === VIDEO_VIEW.FOLD ? [...info, ...appendInfo] : info;
const displayedData = [...info, ...appendInfo];

const handleTextChange = () => {
setTextStatus(textStatus === VIDEO_VIEW.MORE_VIEW ? VIDEO_VIEW.FOLD : VIDEO_VIEW.MORE_VIEW);
Expand Down Expand Up @@ -66,19 +66,22 @@ const MainSectionContentList = styled.div<{ $textStatus: string }>`
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
overflow: ${({ $textStatus }) => ($textStatus === VIDEO_VIEW.MORE_VIEW ? 'hidden' : 'visible')};
max-height: ${({ $textStatus }) => ($textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (320px + 30px) - 30px)' : 'none')};
max-height: ${({ $textStatus }) =>
$textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (320px + 30px) - 30px)' : 'none'};
> div {
max-width: 100%;
}
@media (max-width: 1700px) {
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
max-height: ${({ $textStatus }) => ($textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (320px + 30px) - 30px)' : 'none')};
max-height: ${({ $textStatus }) =>
$textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (320px + 30px) - 30px)' : 'none'};
}
@media (max-width: 1500px) {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
max-height: ${({ $textStatus }) => ($textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (300px + 30px) - 30px)' : 'none')};
max-height: ${({ $textStatus }) =>
$textStatus === VIDEO_VIEW.MORE_VIEW ? 'calc(2 * (300px + 30px) - 30px)' : 'none'};
}
`;

0 comments on commit c970248

Please sign in to comment.