Skip to content

Commit

Permalink
👍 ページ内のグラフ配置を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yamaji committed Dec 24, 2024
1 parent def849e commit 032b3a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/[placement]/monthly/[year]/[month]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default async function Page({
{(await params).placement === "fukui-station-east-entrance" ? (
<article className="mb-4 flex flex-col items-center p-4">
<h2 className="mb-2 text-xl font-bold">福井駅東口(観光案内所前)</h2>
<div className="grid h-full w-full grid-cols-1 gap-4 xl:grid-cols-2">
<div className="flex flex-wrap justify-center gap-4">
<MonthlyDetectedPersonGraph
placement="fukui-station-east-entrance"
year={date.getFullYear()}
Expand All @@ -65,7 +65,7 @@ export default async function Page({
) : (await params).placement === "tojinbo-shotaro" ? (
<article className="mb-4 flex flex-col items-center p-4">
<h2 className="mb-2 text-xl font-bold">東尋坊</h2>
<div className="grid h-full w-full grid-cols-1 gap-4 xl:grid-cols-2">
<div className="flex flex-wrap justify-center gap-4">
<MonthlyDetectedPersonGraph
placement="tojinbo-shotaro"
year={date.getFullYear()}
Expand All @@ -86,7 +86,7 @@ export default async function Page({
) : (await params).placement === "rainbow-line-parking-lot-1-gate" ? (
<article className="mb-4 flex flex-col items-center p-4">
<h2 className="mb-2 text-xl font-bold">レインボーライン第一駐車場</h2>
<div className="grid h-full w-full grid-cols-1 gap-4 xl:grid-cols-2">
<div className="flex flex-wrap justify-center gap-4">
<MonthlyEstimatedPrefectureGraph
placement="rainbow-line-parking-lot-1-gate"
year={date.getFullYear()}
Expand All @@ -112,7 +112,7 @@ export default async function Page({
) : (await params).placement === "rainbow-line-parking-lot-2-gate" ? (
<article className="mb-4 flex flex-col items-center p-4">
<h2 className="mb-2 text-xl font-bold">レインボーライン第二駐車場</h2>
<div className="grid h-full w-full grid-cols-1 gap-4 xl:grid-cols-2">
<div className="flex flex-wrap justify-center gap-4">
<MonthlyEstimatedPrefectureGraph
placement="rainbow-line-parking-lot-2-gate"
year={date.getFullYear()}
Expand Down
2 changes: 1 addition & 1 deletion components/graph.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function Graph(
<div
className={`relative grid h-[180px] w-[240px] place-content-center sm:h-[360px] sm:w-[480px]`}
>
<div className="absolute left-0 top-0 grid h-fit w-[240px] place-content-center sm:h-[360px] sm:w-[480px]">
<div className="absolute left-0 top-0 grid h-[180px] w-[240px] place-content-center sm:h-[360px] sm:w-[480px]">
<GraphIcon className="fill-surface animate-pulse" size="large" />
</div>
<Chart
Expand Down

0 comments on commit 032b3a5

Please sign in to comment.