Web: "Neue Kategorie"-Button auf Hoehe des Auswahlfelds
Eigene unsichtbare Beschriftungszeile ueber dem Knopf, damit er auf gleicher Hoehe wie das Kategorie-Auswahlfeld beginnt - statt am oberen oder unteren Zeilenrand zu kleben. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -656,8 +656,11 @@ export default function ProductForm() {
|
||||
/>
|
||||
</label>
|
||||
{isAdmin && (
|
||||
<div style={{ display: "flex", alignSelf: "flex-end", marginBottom: 2 }}>
|
||||
<button type="button" className="btn"
|
||||
// Eigene, unsichtbare Beschriftungszeile, damit der Knopf auf
|
||||
// gleicher Höhe wie das Auswahlfeld beginnt (nicht am Zeilenrand).
|
||||
<div style={{ marginBottom: "var(--sp-4)" }}>
|
||||
<div aria-hidden="true" style={{ visibility: "hidden", fontSize: "0.8rem", fontWeight: 580 }}> </div>
|
||||
<button type="button" className="btn" style={{ width: "auto", marginTop: 5 }}
|
||||
onClick={() => (newCat ? setNewCat(null) : openNewCat())}>
|
||||
<Icon name="plus" size={16} />Neue Kategorie
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user