Web-Artikelformular: Umschalter Lebensmittel/Gegenstand
Statt die Verwaltungsart nur implizit ueber die Kategorie zu waehlen (und dabei Werkzeug & Co. zwischen 50 Lebensmittel-Kategorien zu suchen), gibt es jetzt oben einen klaren Umschalter. Die Kategorieauswahl zeigt nur Kategorien des gewaehlten Typs; neu angelegte Kategorien erben den Typ automatisch. Neuanlage startet als Gegenstand, beim Bearbeiten kommt der Modus aus dem Artikel. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -859,6 +859,13 @@ tr.row-active { background: var(--surface-2); }
|
||||
.card-sub .card-head { margin-top: 0; }
|
||||
.card-sub h3 { margin: 0; font-size: 15px; }
|
||||
|
||||
/* Umschalter Lebensmittel/Gegenstand */
|
||||
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 4px; }
|
||||
.segmented button { border: 0; background: var(--surface); color: var(--text); padding: 8px 16px; cursor: pointer; font: inherit; }
|
||||
.segmented button + button { border-left: 1px solid var(--border); }
|
||||
.segmented button.active { background: var(--accent); color: #fff; }
|
||||
.segmented button:disabled { cursor: default; opacity: 0.6; }
|
||||
|
||||
/* Artikelfoto mit Aufnahme-/Galerie-Knöpfen */
|
||||
.produkt-foto { display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; }
|
||||
.foto-knoepfe { display: flex; flex-wrap: wrap; gap: var(--sp-1); justify-content: center; }
|
||||
|
||||
Reference in New Issue
Block a user