Ui update #7

Merged
robin merged 13 commits from ui-update into main 2026-07-25 17:51:19 +00:00
2 changed files with 12 additions and 9 deletions
Showing only changes of commit a3cb0616c1 - Show all commits

No files matched your search

+4 -6
View File
@@ -151,8 +151,7 @@ export default function AdminPage() {
<div className="space-y-4"> <div className="space-y-4">
<div> <div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Liederbuch wählen</label> <label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Liederbuch wählen</label>
<select <Input.Select
className="w-full bg-black border border-neutral-700 rounded-lg px-3 py-2 text-white focus:outline-none focus:border-blue-400 text-sm h-[38px]"
value={selectedSongbookId} value={selectedSongbookId}
onChange={(e) => setSelectedSongbookId(e.target.value)} onChange={(e) => setSelectedSongbookId(e.target.value)}
> >
@@ -162,7 +161,7 @@ export default function AdminPage() {
{book.name}{book.language ? ` (${book.language})` : ""} {book.name}{book.language ? ` (${book.language})` : ""}
</option> </option>
))} ))}
</select> </Input.Select>
</div> </div>
<div className="grid grid-cols-3 gap-2"> <div className="grid grid-cols-3 gap-2">
<div className="col-span-1"> <div className="col-span-1">
@@ -194,8 +193,7 @@ export default function AdminPage() {
<div className="space-y-4"> <div className="space-y-4">
<div> <div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Ziel-Liederbuch</label> <label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Ziel-Liederbuch</label>
<select <Input.Select
className="w-full bg-black border border-neutral-700 rounded-lg px-3 py-2 text-white focus:outline-none focus:border-blue-400 text-sm h-[38px]"
value={selectedSongbookId} value={selectedSongbookId}
onChange={(e) => setSelectedSongbookId(e.target.value)} onChange={(e) => setSelectedSongbookId(e.target.value)}
> >
@@ -205,7 +203,7 @@ export default function AdminPage() {
{book.name}{book.language ? ` (${book.language})` : ""} {book.name}{book.language ? ` (${book.language})` : ""}
</option> </option>
))} ))}
</select> </Input.Select>
</div> </div>
<div> <div>
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Datei auswählen (.csv)</label> <label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Datei auswählen (.csv)</label>
+8 -3
View File
@@ -14,10 +14,15 @@ function Textfield({value, onChange, placeholder}: TextfieldProps) {
) )
} }
function Dropdown() { function Dropdown({ children, ...props }: ComponentPropsWithoutRef<"select">) {
return ( return (
<p></p> <select
) className="w-full border border-neutral-700 rounded-lg px-3 py-2 focus:outline-none focus:border-blue-400 text-sm h-[38px]"
{...props}
>
{children}
</select>
);
} }
export const Input = { export const Input = {