nielsr HF staff commited on
Commit
72c3243
·
1 Parent(s): 7e38a15

Improve lines for multiple events

Browse files
Files changed (1) hide show
  1. src/pages/Calendar.tsx +6 -6
src/pages/Calendar.tsx CHANGED
@@ -210,23 +210,23 @@ const CalendarPage = () => {
210
 
211
  return (
212
  <div className="relative w-full h-full flex flex-col">
213
- {/* Day number at the top with more space */}
214
- <div className="h-12 flex items-center justify-center">
215
  <span>{format(date, 'd')}</span>
216
  </div>
217
 
218
- {/* Event indicator lines at the bottom */}
219
- <div className="absolute bottom-2 left-0 right-0 flex flex-col-reverse gap-[2px]">
220
  {/* Conference lines at the bottom (rendered first) */}
221
  {conferenceStyles.map((style, index) => (
222
  <div
223
  key={`conf-${index}`}
224
- className={`h-[3px] ${style.style} ${style.color}`}
225
  />
226
  ))}
227
  {/* Deadline lines on top */}
228
  {hasDeadline && (
229
- <div className="h-[3px] w-[calc(100%+1rem)] -left-2 relative bg-red-500" />
230
  )}
231
  </div>
232
 
 
210
 
211
  return (
212
  <div className="relative w-full h-full flex flex-col">
213
+ {/* Day number at the top with moderate space */}
214
+ <div className="h-10 flex items-center justify-center">
215
  <span>{format(date, 'd')}</span>
216
  </div>
217
 
218
+ {/* Event indicator lines closer to the day number */}
219
+ <div className="absolute bottom-2 left-0 right-0 flex flex-col-reverse gap-[1px]">
220
  {/* Conference lines at the bottom (rendered first) */}
221
  {conferenceStyles.map((style, index) => (
222
  <div
223
  key={`conf-${index}`}
224
+ className={`h-[2px] ${style.style} ${style.color}`}
225
  />
226
  ))}
227
  {/* Deadline lines on top */}
228
  {hasDeadline && (
229
+ <div className="h-[2px] w-[calc(100%+1rem)] -left-2 relative bg-red-500" />
230
  )}
231
  </div>
232