Skip to content

Commit 84dfa99

Browse files
committed
feat: 캘린더 레이아웃 깨짐 수정
1 parent f309c8e commit 84dfa99

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/components/common/Calendar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default function Calendar() {
138138

139139
return (
140140
<div>
141-
<div className="rounded bg-white p-6 px-4">
141+
<div className="rounded bg-white p-7 px-4">
142142
<FullCalendar
143143
ref={calendarRef}
144144
plugins={[dayGridPlugin, interactionPlugin]}
@@ -218,7 +218,7 @@ function EventCards({ events, date }: EventCardsProps) {
218218

219219
return (
220220
<div>
221-
<h2 className="ml-2">{date}</h2>
221+
<h2 className="ml-2 mb-2">{date}</h2>
222222
<div className="flex gap-5 overflow-x-auto">
223223
{events.map((event, index) => {
224224
const eventDateRange = formatDateRange(event.start_date, event.end_date);

src/pages/MyCalendarPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const MyCalendarPage: React.FC = () => {
99
<AppBar backButton={false} IconButton={<HamburgerButton />} calendarName="내 캘린더" />
1010
<main className="z-1 relative flex-grow">
1111
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
12-
<div className="rounded p-6 px-4 sm:px-0">
12+
<div>
1313
<Calendar />
1414
<CreateEventButton />
1515
</div>

src/styles/index.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,24 @@
7272

7373
@media (min-width: 1024px) {
7474
main {
75-
padding-left: 15%;
76-
padding-right: 25%;
75+
padding-right: 25vw;
7776
}
7877
.eventCardList {
7978
position: fixed;
8079
right: 0;
8180
top: 0;
82-
width: 25%;
81+
width: 25vw;
8382
height: 100%;
8483
padding: 0 1rem;
8584
padding-left: 0;
86-
margin-top: 4rem;
85+
margin-top: 4.5rem;
8786
}
8887
.eventCardList .flex {
8988
overflow-y: auto;
9089
overflow-x: hidden;
9190
flex-flow: column;
91+
max-height: calc(90vh - 72px);
92+
overflow-y: auto;
9293
}
9394
.drawer-toggle {
9495
display: none;
@@ -97,7 +98,6 @@
9798
flex-direction: row;
9899
}
99100
.drawer-side {
100-
width: 15%;
101101
visibility: visible;
102102
overflow-y: auto;
103103
pointer-events: auto;

0 commit comments

Comments
 (0)