mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
Fix: constrain playlist filter width
The filters on the playlist page stretched into one long strip beside the tank pool, squeezing the pool into the remaining space. **Changes** - Place the filters and the generate button in a fixed-width column (`22rem`) on medium screens and up so the filter buttons wrap compactly - Stretch the generate button to the column width - Let the tank pool take the remaining width - Tighten the gap between the two columns - Keep the existing stacked layout on small screens
This commit is contained in:
1 parent
067c9cb267
commit
fbba0bf13b
1 file changed
+9
-2
@@ -25,6 +25,7 @@ import { FilterControl } from "./TankSearch/components/FilterControl";
|
|||||||
const tankDefinitions = await api.tankDefinitions();
|
const tankDefinitions = await api.tankDefinitions();
|
||||||
|
|
||||||
const POOL_HEIGHT = "16rem";
|
const POOL_HEIGHT = "16rem";
|
||||||
|
const FILTERS_WIDTH = "22rem";
|
||||||
|
|
||||||
export function PlaylistGenerator({ skeleton }: MaybeSkeletonComponentProps) {
|
export function PlaylistGenerator({ skeleton }: MaybeSkeletonComponentProps) {
|
||||||
const [largeWarningOpen, setLargeWarningOpen] = useState(false);
|
const [largeWarningOpen, setLargeWarningOpen] = useState(false);
|
||||||
@@ -80,13 +81,19 @@ export function PlaylistGenerator({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
<Flex justify="center" width="100%" align="center" px="4">
|
<Flex justify="center" width="100%" align="center" px="4">
|
||||||
<Flex
|
<Flex
|
||||||
flexGrow="1"
|
flexGrow="1"
|
||||||
gap="9"
|
gap="6"
|
||||||
align="center"
|
align="center"
|
||||||
justify="center"
|
justify="center"
|
||||||
maxWidth="80rem"
|
maxWidth="80rem"
|
||||||
direction={{ initial: "column-reverse", md: "row" }}
|
direction={{ initial: "column-reverse", md: "row" }}
|
||||||
>
|
>
|
||||||
<Flex direction="column" gap="4" align="center">
|
<Flex
|
||||||
|
direction="column"
|
||||||
|
gap="4"
|
||||||
|
align="stretch"
|
||||||
|
flexShrink="0"
|
||||||
|
width={{ initial: "100%", md: FILTERS_WIDTH }}
|
||||||
|
>
|
||||||
<FilterControl />
|
<FilterControl />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in new issue
Block a user