diff options
| author | nsfisis <54318333+nsfisis@users.noreply.github.com> | 2026-03-20 00:44:15 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-20 00:44:15 +0900 |
| commit | 4208959457c9bb676d3e2115ee3b02786c44db51 (patch) | |
| tree | a5cf2c3a092fc48e9f144b6a5d993432eb15cd02 | |
| parent | a3a87860031efbc1a728cff6c4039e6d5308c2c0 (diff) | |
| parent | b04cb62d985e9eaf731169c8b592eeb268eb10dd (diff) | |
| download | phperkaigi-2026-albatross-4208959457c9bb676d3e2115ee3b02786c44db51.tar.gz phperkaigi-2026-albatross-4208959457c9bb676d3e2115ee3b02786c44db51.tar.zst phperkaigi-2026-albatross-4208959457c9bb676d3e2115ee3b02786c44db51.zip | |
Merge pull request #12 from nsfisis/claude/fix-bracket-lines-UV13H
Fix tournament bracket connector positioning and span calculations
| -rw-r--r-- | frontend/app/pages/TournamentPage.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/frontend/app/pages/TournamentPage.tsx b/frontend/app/pages/TournamentPage.tsx index 87836b2..3d954c9 100644 --- a/frontend/app/pages/TournamentPage.tsx +++ b/frontend/app/pages/TournamentPage.tsx @@ -114,11 +114,15 @@ function Connector({ > <div className={`border-t-4 ${leftBorderColor}`} - style={{ gridColumn: `1 / span ${leftHalf}` }} + style={{ + gridColumn: `${Math.floor(leftHalf / 2) + 1} / span ${Math.ceil(leftHalf / 2)}`, + }} /> <div className={`border-t-4 ${rightBorderColor}`} - style={{ gridColumn: `${leftHalf + 1} / span ${rightHalf}` }} + style={{ + gridColumn: `${leftHalf + 1} / span ${Math.ceil(rightHalf / 2)}`, + }} /> </div> |
