Skip to content

Commit

Permalink
chore: 히스토리 아이템 반응형 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SeieunYoo committed Sep 7, 2024
1 parent b4d1a12 commit 1ba7178
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions apps/client/app/(afterLogin)/study-apply/_components/StudyItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ const StudyItem = ({ study, appliedStudyId }: StudyItemProps) => {
<Text className={textCellStyle({ type: "mentor" })}>
{mentorName} 멘토
</Text>
<Text className={timeCellStyle}>{studyTime}</Text>
<Text
className={timeCellStyle({
type: studyTime === "-" ? "empty" : "default",
})}
>
{studyTime}
</Text>
<Text className={textCellStyle({ type: "week" })}>
{totalWeek}주 코스
</Text>
Expand Down Expand Up @@ -136,21 +142,36 @@ const dateStyle = css({
textOverflow: "ellipsis",
width: "38px",
},
"@media (max-width: 959px)": {
display: "none",
},
});

const timeCellStyle = css({
width: "162px",
display: "flex",
paddingLeft: "28px",
textAlign: "center",
"@media (max-width: 1439px)": {
overflow: "hidden",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
padding: "0",
const timeCellStyle = cva({
base: {
width: "162px",
display: "flex",
paddingLeft: "28px",
textAlign: "center",
"@media (min-width: 1200px) and (max-width: 1400px)": {
overflow: "hidden",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
padding: "0 !important",
justifyContent: "center",
},
"@media (max-width: 1199px)": {
display: "none !important",
},
},
"@media (max-width: 1199px)": {
display: "none",
variants: {
type: {
empty: {
paddingLeft: "0 !important",
justifyContent: "center",
},
default: {},
},
},
});
const textCellStyle = cva({
Expand Down

0 comments on commit 1ba7178

Please sign in to comment.