Wrap chips in export dialog

This commit is contained in:
Kalle
2026-06-21 16:28:34 +03:00
parent b7b0239ab3
commit 4a77161246
3 changed files with 9 additions and 1 deletions

View File

@@ -7,6 +7,11 @@
flex-direction: column;
align-items: stretch;
}
&[data-wrap="true"] {
flex-wrap: wrap;
width: auto;
}
}
.label {

View File

@@ -3,6 +3,7 @@ import styles from "./ChipRadio.module.css";
interface SendouChipRadioGroupProps {
children: React.ReactNode;
orientation?: "horizontal" | "vertical";
wrap?: boolean;
className?: string;
}
@@ -17,12 +18,14 @@ interface SendouChipRadioProps {
export function SendouChipRadioGroup({
children,
orientation = "horizontal",
wrap = false,
className,
}: SendouChipRadioGroupProps) {
return (
<div
className={className ? `${styles.group} ${className}` : styles.group}
data-orientation={orientation}
data-wrap={wrap}
role="radiogroup"
>
{children}

View File

@@ -222,7 +222,7 @@ function RadioRow<T extends string>({
return (
<div className="stack sm">
<div className="text-sm font-bold">{label}</div>
<SendouChipRadioGroup>
<SendouChipRadioGroup wrap>
{options.map((option) => (
<SendouChipRadio
key={option.value}