Design refresh + a bunch of stuff (#2864)

Co-authored-by: hfcRed <hfcred@gmx.net>
This commit is contained in:
Kalle
2026-03-19 17:51:42 +02:00
committed by GitHub
parent fcc5c5f273
commit fef1ffc955
830 changed files with 35854 additions and 16836 deletions

View File

@@ -1,9 +1,8 @@
import { Plus, Trash } from "lucide-react";
import type * as React from "react";
import { useTranslation } from "react-i18next";
import { SendouButton } from "~/components/elements/Button";
import { FormMessage } from "~/components/FormMessage";
import { PlusIcon } from "~/components/icons/Plus";
import { TrashIcon } from "~/components/icons/Trash";
import type { FormFieldProps } from "../types";
import styles from "./ArrayFormField.module.css";
import { useTranslatedTexts } from "./FormFieldWrapper";
@@ -90,7 +89,7 @@ export function ArrayFormField({
</div>
{count > min ? (
<SendouButton
icon={<TrashIcon />}
icon={<Trash />}
aria-label="Remove item"
size="small"
variant="minimal-destructive"
@@ -108,7 +107,7 @@ export function ArrayFormField({
) : null}
<SendouButton
size="small"
icon={<PlusIcon />}
icon={<Plus />}
onPress={handleAdd}
isDisabled={count >= max}
className="m-0-auto"
@@ -139,7 +138,8 @@ function ArrayItemFieldset({
<legend className={styles.headerLabel}>#{index + 1}</legend>
{canRemove ? (
<SendouButton
icon={<TrashIcon />}
shape="circle"
icon={<Trash />}
aria-label="Remove item"
size="small"
variant="minimal-destructive"