Skip to content

Commit ed7b0cd

Browse files
committed
fix(timeline): add spaces between stages
1 parent f1b0d73 commit ed7b0cd

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

src/components/schedule/ArtistScheduleBlock.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,40 @@ interface ArtistScheduleBlockProps {
1111
compact?: boolean;
1212
}
1313

14-
export const ArtistScheduleBlock = ({
14+
export function ArtistScheduleBlock({
1515
artist,
1616
userVote,
1717
onVote,
1818
compact = false,
19-
}: ArtistScheduleBlockProps) => {
20-
const getVoteCount = (voteType: number) => {
19+
}: ArtistScheduleBlockProps) {
20+
function getVoteCount(voteType: number) {
2121
return (artist.votes || []).filter((vote) => vote.vote_type === voteType)
2222
.length;
23-
};
23+
}
2424

25-
const handleVote = (voteType: number) => {
25+
function handleVote(voteType: number) {
2626
if (onVote) {
2727
onVote(artist.id, voteType);
2828
}
29-
};
29+
}
3030

3131
return (
3232
<Card className="bg-white/10 backdrop-blur-md border-purple-400/30 hover:border-purple-400/50 transition-colors">
3333
<CardContent className={compact ? "p-3" : "p-4"}>
3434
<div className="mb-2">
3535
<Link
3636
to={`/artist/${artist.id}`}
37-
className="text-white font-semibold hover:text-purple-300 transition-colors block"
37+
className="text-white font-semibold hover:text-purple-300 transition-colors block text-sm"
3838
>
3939
{artist.name}
4040
</Link>
4141

4242
{/* Show artists in this set */}
43-
{artist.artists && artist.artists.length > 0 && (
43+
{/* {artist.artists && artist.artists.length > 0 && (
4444
<div className="text-purple-300 text-sm mt-1">
4545
{artist.artists.map((a) => a.name).join(", ")}
4646
</div>
47-
)}
47+
)} */}
4848
</div>
4949

5050
<div className="space-y-1 text-sm text-purple-200">
@@ -111,4 +111,4 @@ export const ArtistScheduleBlock = ({
111111
</CardContent>
112112
</Card>
113113
);
114-
};
114+
}

src/components/schedule/StageLabels.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ interface StageLabelsProps {
44

55
export function StageLabels({ stages }: StageLabelsProps) {
66
return (
7-
<div className="absolute left-4 top-16 z-20 space-y-6">
7+
<div className="absolute left-4 top-16 z-20 space-y-20">
88
{stages.map((stage) => (
9-
<div key={stage.name} className="h-20 flex items-center justify-end">
9+
<div key={stage.name} className="h-20 flex items-center">
1010
<div className="text-sm font-medium text-white bg-gradient-to-r from-purple-600 to-blue-600 px-2 py-1 rounded">
1111
{stage.name}
1212
</div>

src/components/schedule/TimelineContainer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export function TimelineContainer({
2020
<div
2121
ref={scrollContainerRef}
2222
className="overflow-x-auto overflow-y-hidden pb-20"
23-
style={{ paddingLeft: "144px" }}
2423
>
2524
{/* Time Scale */}
2625
<TimeScale
@@ -30,7 +29,7 @@ export function TimelineContainer({
3029
/>
3130

3231
{/* Stage Rows */}
33-
<div className="space-y-6">
32+
<div className="space-y-20 mt-28">
3433
{timelineData.stages.map((stage) => (
3534
<StageRow
3635
key={stage.name}

0 commit comments

Comments
 (0)