-
Notifications
You must be signed in to change notification settings - Fork 4
text alignment fix #1644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text alignment fix #1644
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| "use client"; | ||
|
|
||
| import { useState } from "react"; | ||
| import { MobileVotingModal, VotingModal } from "@/components/voting"; | ||
| import VotingModalButton from "@/components/voting/VotingModalButton"; | ||
| import { ExtendedDrop } from "@/helpers/waves/drop.helpers"; | ||
| import { ParticipationDropRatings } from "./ParticipationDropRatings"; | ||
| import { format } from "date-fns"; | ||
| import { useDropInteractionRules } from "@/hooks/drops/useDropInteractionRules"; | ||
| import { VotingModal, MobileVotingModal } from "@/components/voting"; | ||
| import VotingModalButton from "@/components/voting/VotingModalButton"; | ||
| import useIsMobileScreen from "@/hooks/isMobileScreen"; | ||
| import { format } from "date-fns"; | ||
| import { useState } from "react"; | ||
| import WaveDropReactions from "../WaveDropReactions"; | ||
| import { ParticipationDropRatings } from "./ParticipationDropRatings"; | ||
|
|
||
| interface ParticipationDropFooterProps { | ||
| readonly drop: ExtendedDrop; | ||
|
|
@@ -25,7 +25,7 @@ export default function ParticipationDropFooter({ | |
| <> | ||
| {canShowVote && ( | ||
| <div | ||
| className="tw-@container sm:tw-ml-[3.25rem] tw-mt-4" | ||
| className="tw-@container sm:tw-ml-[3.5rem] tw-mt-4" | ||
| onClick={(e) => e.stopPropagation()}> | ||
| <div className="tw-flex @[700px]:tw-justify-between tw-flex-col @[700px]:tw-flex-row @[700px]:tw-items-center tw-gap-x-4 tw-gap-y-3"> | ||
| <div className="tw-px-4"> | ||
|
|
@@ -60,16 +60,16 @@ export default function ParticipationDropFooter({ | |
|
|
||
| {/* Show ratings if no vote button */} | ||
| {!canShowVote && !!drop.raters_count && ( | ||
| <div className="tw-mt-4 tw-px-4 tw-ml-[3.25rem]"> | ||
| <div className="tw-mt-4 tw-px-4 tw-ml-[3.5rem]"> | ||
| <ParticipationDropRatings drop={drop} rank={drop.rank} /> | ||
| </div> | ||
| )} | ||
|
|
||
| <div className="tw-mt-4 tw-px-4 tw-flex tw-w-[calc(100%-3.25rem)] tw-ml-[3.25rem] tw-items-center tw-gap-x-2 tw-gap-y-1 tw-flex-wrap"> | ||
| <div className="tw-mt-4 tw-px-4 tw-flex tw-w-[calc(100%-3.25rem)] tw-ml-[3.5rem] tw-items-center tw-gap-x-2 tw-gap-y-1 tw-flex-wrap"> | ||
| <WaveDropReactions drop={drop} /> | ||
| </div> | ||
|
Comment on lines
+68
to
70
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix width calc mismatch: - <div className="tw-mt-4 tw-px-4 tw-flex tw-w-[calc(100%-3.25rem)] tw-ml-[3.5rem] tw-items-center tw-gap-x-2 tw-gap-y-1 tw-flex-wrap">
+ <div className="tw-mt-4 tw-px-4 tw-flex tw-w-[calc(100%-3.5rem)] tw-ml-[3.5rem] tw-items-center tw-gap-x-2 tw-gap-y-1 tw-flex-wrap">
<WaveDropReactions drop={drop} />
</div>🤖 Prompt for AI Agents |
||
|
|
||
| <div className="tw-mt-4 tw-px-4 sm:tw-ml-[3.25rem] tw-pb-3 tw-text-[11px] tw-text-iron-500 tw-border-t tw-border-iron-800/30"> | ||
| <div className="tw-mt-4 tw-px-4 sm:tw-ml-[3.5rem] tw-pb-3 tw-text-[11px] tw-text-iron-500 tw-border-t tw-border-iron-800/30"> | ||
| {format(new Date(drop.created_at), "h:mm a · MMM d, yyyy")} | ||
| </div> | ||
| </> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,24 @@ | ||
| "use client"; | ||
|
|
||
| import React, { useState } from "react"; | ||
| import { createPortal } from "react-dom"; | ||
| import { ExtendedDrop } from "@/helpers/waves/drop.helpers"; | ||
| import { WaveLeaderboardDropHeader } from "./header/WaveLeaderboardDropHeader"; | ||
| import { WaveLeaderboardDropContent } from "../content/WaveLeaderboardDropContent"; | ||
| import { WaveLeaderboardDropFooter } from "./footer/WaveLeaderboardDropFooter"; | ||
| import { ApiWave } from "@/generated/models/ObjectSerializer"; | ||
| import { useDropInteractionRules } from "@/hooks/drops/useDropInteractionRules"; | ||
| import { WaveLeaderboardDropRaters } from "./header/WaveleaderboardDropRaters"; | ||
| import WaveDropActionsOptions from "@/components/waves/drops/WaveDropActionsOptions"; | ||
| import CommonDropdownItemsMobileWrapper from "@/components/utils/select/dropdown/CommonDropdownItemsMobileWrapper"; | ||
| import { MobileVotingModal, VotingModal } from "@/components/voting"; | ||
| import VotingModalButton from "@/components/voting/VotingModalButton"; | ||
| import WaveDropActionsOpen from "@/components/waves/drops/WaveDropActionsOpen"; | ||
| import WaveDropMobileMenuOpen from "@/components/waves/drops/WaveDropMobileMenuOpen"; | ||
| import WaveDropActionsOptions from "@/components/waves/drops/WaveDropActionsOptions"; | ||
| import WaveDropMobileMenuDelete from "@/components/waves/drops/WaveDropMobileMenuDelete"; | ||
| import { VotingModal, MobileVotingModal } from "@/components/voting"; | ||
| import VotingModalButton from "@/components/voting/VotingModalButton"; | ||
| import WaveDropMobileMenuOpen from "@/components/waves/drops/WaveDropMobileMenuOpen"; | ||
| import { ApiWave } from "@/generated/models/ObjectSerializer"; | ||
| import { ExtendedDrop } from "@/helpers/waves/drop.helpers"; | ||
| import { useDropInteractionRules } from "@/hooks/drops/useDropInteractionRules"; | ||
| import useIsMobileScreen from "@/hooks/isMobileScreen"; | ||
| import useDeviceInfo from "@/hooks/useDeviceInfo"; | ||
| import CommonDropdownItemsMobileWrapper from "@/components/utils/select/dropdown/CommonDropdownItemsMobileWrapper"; | ||
| import useLongPressInteraction from "@/hooks/useLongPressInteraction"; | ||
| import React, { useState } from "react"; | ||
| import { createPortal } from "react-dom"; | ||
| import { WaveLeaderboardDropContent } from "../content/WaveLeaderboardDropContent"; | ||
| import { WaveLeaderboardDropFooter } from "./footer/WaveLeaderboardDropFooter"; | ||
| import { WaveLeaderboardDropHeader } from "./header/WaveLeaderboardDropHeader"; | ||
| import { WaveLeaderboardDropRaters } from "./header/WaveleaderboardDropRaters"; | ||
|
|
||
|
Comment on lines
+3
to
22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Search for the actual file with its correct casing
echo "=== Searching for the actual file ==="
fd -a "Wave.*DropRaters\.(ts|tsx)$" . | head -20
echo ""
echo "=== Checking all import statements with case-insensitive search ==="
rg -in "waveleaderboarddropraters|wavelearboard" . --type=ts --type=tsx | head -30
echo ""
echo "=== Checking specific import statements in the target file ==="
rg -n "WaveleaderboardDropRaters|WaveLeaderboardDropRaters" . --type=ts --type=tsxRepository: 6529-Collections/6529seize-frontend Length of output: 413 🏁 Script executed: #!/bin/bash
# Read the specific import line from the target file to verify the exact casing
echo "=== Reading import lines from DefaultWaveLeaderboardDrop.tsx ==="
sed -n '1,30p' components/waves/leaderboard/drops/DefaultWaveLeaderboardDrop.tsx | grep -i "waveleaderboard\|waveleaderboard"
echo ""
echo "=== Listing the actual header file to confirm casing ==="
ls -la components/waves/leaderboard/drops/header/ | grep -i ratersRepository: 6529-Collections/6529seize-frontend Length of output: 733 🏁 Script executed: #!/bin/bash
# Check the actual export from the WaveleaderboardDropRaters.tsx file
echo "=== Reading WaveleaderboardDropRaters.tsx export ==="
head -50 components/waves/leaderboard/drops/header/WaveleaderboardDropRaters.tsx | grep -E "export|const|function"
echo ""
echo "=== Check full export statement ==="
rg "export.*WaveLeaderboard|export.*Waveleaderboard" components/waves/leaderboard/drops/header/WaveleaderboardDropRaters.tsx -A 2Repository: 6529-Collections/6529seize-frontend Length of output: 643 Fix import path casing: file should be named 🤖 Prompt for AI Agents |
||
| interface DefaultWaveLeaderboardDropProps { | ||
| readonly drop: ExtendedDrop; | ||
|
|
@@ -64,7 +64,7 @@ export const DefaultWaveLeaderboardDrop: React.FC< | |
| onClick={() => onDropClick(drop)} | ||
| className="tw-@container tw-group tw-cursor-pointer tw-rounded-xl tw-transition tw-duration-300 tw-ease-out tw-w-full tw-relative"> | ||
| <div className={getBorderClasses()} {...touchHandlers}> | ||
| <div className="tw-flex tw-flex-col"> | ||
| <div className="tw-flex tw-flex-col tw-gap-3"> | ||
| <div className="tw-flex tw-flex-col tw-gap-3"> | ||
| <div className="tw-flex tw-items-center tw-justify-between tw-gap-4"> | ||
| <WaveLeaderboardDropHeader drop={drop} /> | ||
|
|
@@ -84,7 +84,7 @@ export const DefaultWaveLeaderboardDrop: React.FC< | |
| <WaveLeaderboardDropContent drop={drop} isCompetitionDrop={true} /> | ||
| </div> | ||
| </div> | ||
| <div className="tw-mt-3 tw-inline-flex tw-flex-col @[700px]:tw-flex-row tw-justify-between @[700px]:tw-items-center sm:tw-ml-[3.25rem] tw-space-y-3 @[700px]:tw-space-y-0 tw-gap-x-2"> | ||
| <div className="tw-mt-3 tw-inline-flex tw-flex-col @[700px]:tw-flex-row tw-justify-between @[700px]:tw-items-center sm:tw-ml-[3.5rem] tw-space-y-3 @[700px]:tw-space-y-0 tw-gap-x-2"> | ||
| <div className="tw-flex tw-flex-wrap tw-items-center tw-gap-y-2 tw-gap-x-4"> | ||
| <WaveLeaderboardDropRaters drop={drop} /> | ||
| <WaveLeaderboardDropFooter drop={drop} wave={wave} /> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix TypeScript:
React.*types used without importingReact.After switching to named imports from
"react", the file still referencesReact.RefObject/React.TouchEvent, which will failtsc --noEmit.Also applies to: 117-132, 193-213
🤖 Prompt for AI Agents