Spaces:
Running
Running
Improve lines for multiple events
Browse files- 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
|
| 214 |
-
<div className="h-
|
| 215 |
<span>{format(date, 'd')}</span>
|
| 216 |
</div>
|
| 217 |
|
| 218 |
-
{/* Event indicator lines
|
| 219 |
-
<div className="absolute bottom-2 left-0 right-0 flex flex-col-reverse gap-[
|
| 220 |
{/* Conference lines at the bottom (rendered first) */}
|
| 221 |
{conferenceStyles.map((style, index) => (
|
| 222 |
<div
|
| 223 |
key={`conf-${index}`}
|
| 224 |
-
className={`h-[
|
| 225 |
/>
|
| 226 |
))}
|
| 227 |
{/* Deadline lines on top */}
|
| 228 |
{hasDeadline && (
|
| 229 |
-
<div className="h-[
|
| 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 |
|