Skip to content

Commit bff968d

Browse files
committed
fix rendering issues
1 parent 00d1519 commit bff968d

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

lib/components/event-schedule-new/calendar.components.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import React from "react";
22

3-
type Difficulty = "beginner" | "intermediate" | "advanced" | "all welcome";
3+
type Difficulty =
4+
| "beginner"
5+
| "intermediate"
6+
| "expert"
7+
| "all welcome"
8+
| "other";
49

510
const DifficultyTag = ({
611
difficulty,
@@ -11,16 +16,18 @@ const DifficultyTag = ({
1116
}) => {
1217
const difficultyColorMap = {
1318
beginner: "text-[rgba(20,108,88,1)] border-[rgba(20,108,88,1)]",
14-
intermediate: "bg-yellow-500",
15-
advanced: "bg-red-500",
16-
"all welcome": "bg-blue-500",
19+
intermediate: "text-[rgba(180,83,9,1)] border-[rgba(180,83,9,1)]",
20+
expert: "text-[rgba(153,27,27,1)] border-[rgba(153,27,27,1)]",
21+
"all welcome": "text-[rgba(20,108,88,1)] border-[rgba(20,108,88,1)]",
22+
other: "text-[rgba(20,108,88,1)] border-[rgba(20,108,88,1)]",
1723
};
1824

1925
const difficultyTextMap = {
2026
beginner: "Beginner",
2127
intermediate: "Intermediate",
22-
advanced: "Advanced",
28+
expert: "Expert",
2329
"all welcome": "All Welcome",
30+
other: "All Welcome",
2431
};
2532

2633
const sizeMap = {

lib/components/event-schedule-new/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const NewScheduleIndex = ({
174174

175175
// Define shared column template for consistent alignment
176176
// const columnTemplate = `repeat(${eventRange.length}, minmax(175px, 1fr))`
177-
const columnTemplate = `repeat(${eventRange.length}, minmax(205px, 1fr))`;
177+
const columnTemplate = `repeat(${eventRange.length}, minmax(auto, 230px))`;
178178

179179
// Check if an event should be highlighted based on hovered date
180180
const isEventHighlighted = (placement: any) => {
@@ -247,7 +247,7 @@ const NewScheduleIndex = ({
247247
}`,
248248
gridColumn: `${placement.gridPosition.column} / span ${placement.gridPosition.duration}`,
249249
}}
250-
className={`bg-white rounded-lg border m-0.5 mt-0 relative transition-all duration-200`}
250+
className={`bg-white rounded-lg border m-0.5 mt-0 relative transition-all duration-200]`}
251251
>
252252
<Event
253253
event={placement.event}

0 commit comments

Comments
 (0)