Skip to content
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

♻️ [WV-29] rafactor : scoreboard css 수정 #44

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/game/boxscore/boxscore-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const BoxscoreInfo = ({
onClick={() => handleClick("next")}
/>
</div>
<div className="flex flex-1 justify-between w-full">
<div className="flex w-full justify-center">
<TeamScore
team={currentSchedule.visit as Team}
score={currentSchedule.vscore}
Expand Down
6 changes: 3 additions & 3 deletions components/game/boxscore/score-board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type ScoreBoardProps = {
};

const ScoreBoard = ({ scoreboard }: ScoreBoardProps) => {
const headers = Array.from({ length: 15 }, (_, i) => (i + 1).toString());
const headers = Array.from({ length: 12 }, (_, i) => (i + 1).toString());
const summaryHeaders = ["R", "H", "E", "B"];

const ScoreBoardSkeleton = () => {
Expand Down Expand Up @@ -31,15 +31,15 @@ const ScoreBoard = ({ scoreboard }: ScoreBoardProps) => {
{headers.map((header) => (
<th
key={header}
className="px-3 py-2 bg-red-600 font-normal text-white border border-gray-300 w-8"
className="w-10 px-3 py-2 bg-red-600 font-normal text-white border border-gray-300"
>
{header}
</th>
))}
{summaryHeaders.map((header) => (
<th
key={header}
className="px-3 py-2 bg-red-600 font-normal text-white border border-gray-300 w-8"
className="w-10 px-3 py-2 bg-red-600 font-normal text-white border border-gray-300"
>
{header}
</th>
Expand Down
2 changes: 1 addition & 1 deletion components/game/boxscore/team-score.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { teamLogos } from "@/constants/team-logos";

const TeamScore = (props: TeamScoreProps) => {
return (
<div className="px-10 align-middle justify-items-center space-y-3">
<div className="px-12 align-middle justify-items-center space-y-3">
<p className="text-sm">{props.homeGround ? "Home" : "Away"}</p>
<Image
src={teamLogos[props.team]}
Expand Down
Loading