feat: 아이템 카드 6장부터 2열 레이아웃 — 세로 길이 절반 - #56
Merged
Merged
Conversation
카드형이라 10장 1열이면 세로 ~3,400px(표 대비 벽). 6장부터 첫 열 ⌈n/2⌉로 접는다(6→3·3, 7→4·3, 8→4·4, 9→5·4, 10→5·5) — 10장이 5장 1열과 같은 높이. 5장 이하는 기존 1열 그대로(무회귀). 열 폭은 최장 카드 기준 동일.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
무인자 상한 10명(#55, ADR-0008)에서도 /아이템 카드는 1열 스택이라 10장 ≈ 세로 3,400px 벽이 남아 있었음. 사용자 결정대로 6장부터 2열로 접는다.
분할 규칙 (요청 사양 그대로)
첫 열이 ⌈n/2⌉ —
_column_split순수 함수 하나로 규칙 고정. 읽는 순서는 첫 열 위→아래, 둘째 열 위→아래. 열 폭은 최장 카드 기준으로 두 열 동일.실측
테스트