Skip to content

Commit d2a54c4

Browse files
committed
chore: 추가 css 및 스타일 수정
1 parent ab8ef33 commit d2a54c4

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

packages/common/src/components/mdx_components/session_timetable.tsx

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const SessionColumn: React.FC<{
120120
<SessionBox
121121
onClick={() => clickable && navigate(`/session/${session.id}#${urlSafeTitle}`)}
122122
className={clickable ? "clickable" : ""}
123-
sx={{ height: sessionBoxHeight }}
123+
sx={{ height: sessionBoxHeight, gap: 0.75, padding: "0.5rem" }}
124124
>
125125
<SessionTitle children={session.title} align="center" />
126126
<SessionSpeakerItemContainer direction="row">
@@ -142,7 +142,6 @@ export const SessionTimeTable: React.FC = ErrorBoundary.with(
142142
{ fallback: ErrorFallback },
143143
Suspense.with({ fallback: <ErrorHeading>{"세션 시간표를 불러오는 중 입니다."}</ErrorHeading> }, () => {
144144
React.useEffect(() => window.scrollTo(0, 0), []);
145-
const navigate = useNavigate();
146145
const [confDate, setConfDate] = React.useState("");
147146

148147
const timeTableData = getTimeTableData(sessionRawData);
@@ -158,6 +157,7 @@ export const SessionTimeTable: React.FC = ErrorBoundary.with(
158157

159158
return (
160159
<Box sx={{ flexDirection: "column", width: "90%" }}>
160+
<WarningText children={"* 발표 목록은 발표자 사정에 따라 변동될 수 있습니다."} />
161161
<ColoredDivider />
162162
<SessionDateTabContainer>
163163
{dates.map((date, i) => {
@@ -213,6 +213,7 @@ export const SessionTimeTable: React.FC = ErrorBoundary.with(
213213
transform: `translateY(-${height / 2}rem)`,
214214
border: "unset",
215215
}}
216+
align="center"
216217
>
217218
{time}
218219
</SessionTableCell>
@@ -234,20 +235,20 @@ export const SessionTimeTable: React.FC = ErrorBoundary.with(
234235
}
235236

236237
// 만약 세션 타입이 아닌 발표가 존재하는 경우, 해당 줄에서는 colSpan이 roomCount인 column을 생성합니다.
237-
const nonSessionTypeData = Object.values(roomData).find((room) => room !== undefined && room.session.isSession);
238+
const nonSessionTypeData = Object.values(roomData).find((room) => room !== undefined && !room.session.isSession);
238239
if (nonSessionTypeData) {
239240
Object.keys(rooms).forEach((room) => (rooms[room] = nonSessionTypeData.rowSpan - 1));
240241
return (
241242
<SessionTableRow>
242-
<SessionTableCell>{time}</SessionTableCell>
243+
<SessionTableCell align="center">{time}</SessionTableCell>
243244
<SessionColumn rowSpan={nonSessionTypeData.rowSpan} colSpan={roomCount} session={nonSessionTypeData.session} />
244245
</SessionTableRow>
245246
);
246247
}
247248

248249
return (
249250
<SessionTableRow>
250-
<SessionTableCell>{time}</SessionTableCell>
251+
<SessionTableCell align="center">{time}</SessionTableCell>
251252
{sortedRoomList.map((room) => {
252253
const roomDatum = roomData[room];
253254
if (roomDatum === undefined) {
@@ -272,6 +273,18 @@ export const SessionTimeTable: React.FC = ErrorBoundary.with(
272273
})
273274
);
274275

276+
const WarningText = styled(Typography)({
277+
paddingLeft: "1rem",
278+
backgroundColor: "unset",
279+
textAlign: "right",
280+
margin: 0,
281+
padding: 0,
282+
border: "unset",
283+
fontSize: "1rem",
284+
lineHeight: 2,
285+
fontWeight: 300,
286+
});
287+
275288
const SessionTimeTableItemTagContainer = styled(Stack)({
276289
alignItems: "center",
277290
justifyContent: "center",
@@ -310,7 +323,7 @@ const RestTitle = styled(Typography)({
310323
});
311324

312325
const SessionTitle = styled(Typography)({
313-
fontSize: "1.25em",
326+
fontSize: "1.125em",
314327
fontWeight: 600,
315328
lineHeight: 1.25,
316329
textDecoration: "none",
@@ -413,7 +426,7 @@ const SessionDateTabContainer = styled(Box)({
413426

414427
const SessionBox = styled(Box)(({ theme }) => ({
415428
height: "100%",
416-
margin: "0.25rem",
429+
// margin: "0.25rem",
417430
padding: "0.25rem",
418431
display: "flex",
419432
flexDirection: "column",
@@ -423,7 +436,6 @@ const SessionBox = styled(Box)(({ theme }) => ({
423436
borderRadius: "0.5rem",
424437

425438
backgroundColor: `${theme.palette.primary.light}1A`,
426-
fontSize: "1rem",
427439
transition: "all 0.25s ease",
428440
gap: "0.5rem",
429441

@@ -483,4 +495,5 @@ const SessionTableContainer = styled(Box)({
483495
alignItems: "center",
484496
justifyContent: "center",
485497
gap: "1rem",
498+
flex: 1,
486499
});

0 commit comments

Comments
 (0)