Buttons next to input fields match the field height (wiki contributors, shop categories, bug reports)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
7f1de9613c
commit
b7333b8a07
4 changed files with 8 additions and 8 deletions
|
|
@ -2970,7 +2970,7 @@ a.button-small:hover { text-decoration: none; }
|
|||
|
||||
.shop-categories { display: flex; flex-direction: column; gap: 0.5rem; max-width: 640px; }
|
||||
.shop-category-row { display: flex; align-items: center; gap: 0.5rem; }
|
||||
.shop-category-form { flex-direction: row; align-items: center; gap: 0.5rem; flex: 1; }
|
||||
.shop-category-form { flex-direction: row; align-items: stretch; gap: 0.5rem; flex: 1; } /* Knopf genauso hoch wie die Felder */
|
||||
.shop-category-form input[type="text"] { flex: 1; min-width: 0; }
|
||||
.shop-category-new { margin-top: 0.4rem; padding-top: 0.75rem; border-top: 1px dashed var(--border); }
|
||||
input.shop-sort-input { width: 80px; text-align: center; }
|
||||
|
|
@ -3248,13 +3248,13 @@ input.shop-approve-quantity { width: 72px; padding: 0.3rem 0.45rem; font-size: 0
|
|||
|
||||
.bug-manage-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: stretch; /* Auswahl, Feld und Knopf gleich hoch */
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.bug-manage-row select { width: auto; flex-shrink: 0; }
|
||||
.bug-manage-row input { flex: 1; min-width: 0; }
|
||||
.bug-manage-row button { flex-shrink: 0; }
|
||||
.bug-manage-row button { flex-shrink: 0; align-self: stretch; }
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.bug-form-row { grid-template-columns: 1fr; }
|
||||
|
|
@ -6236,7 +6236,7 @@ a.calendar-agenda-entry:hover { text-decoration: none; filter: brightness(1.2);
|
|||
.wiki-video-file video { object-fit: contain; background: #000; }
|
||||
|
||||
/* Wiki: Mitwirkende hinzufuegen mit Suchliste (Avatare rund) */
|
||||
.wiki-contributor-add { align-items: center; }
|
||||
.wiki-contributor-add { align-items: stretch; } /* Knopf genauso hoch wie das Suchfeld */
|
||||
.wiki-contributor-add .item-picker { flex: 1 1 240px; min-width: 0; }
|
||||
.item-picker-round .item-picker-thumb { border-radius: 50%; object-fit: cover; }
|
||||
.item-picker[data-picker-round] .item-picker-preview { border-radius: 50% !important; object-fit: cover; }
|
||||
|
|
|
|||
2
bugs.php
2
bugs.php
|
|
@ -123,7 +123,7 @@ include __DIR__ . '/includes/header.php';
|
|||
<input type="text" name="admin_note" maxlength="5000"
|
||||
placeholder="Antwort an den Melder (optional)"
|
||||
value="<?= e((string) ($bug['admin_note'] ?? '')) ?>">
|
||||
<button type="submit" class="button-small">Speichern</button>
|
||||
<button type="submit">Speichern</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ include __DIR__ . '/includes/header.php';
|
|||
<input type="hidden" name="category_id" value="<?= (int) $category['id'] ?>">
|
||||
<input type="text" name="name" maxlength="80" required value="<?= e((string) $category['name']) ?>" aria-label="Name">
|
||||
<input type="number" name="sort_order" value="<?= (int) $category['sort_order'] ?>" class="shop-sort-input" aria-label="Reihenfolge" title="Reihenfolge">
|
||||
<button type="submit" class="button-secondary button-small">Speichern</button>
|
||||
<button type="submit" class="button-secondary">Speichern</button>
|
||||
</form>
|
||||
<form method="post" action="/shop_manage_action.php" class="inline-form"
|
||||
onsubmit="return confirm(<?= e(json_encode('Kategorie „' . $category['name'] . '“ löschen? Ihre Gegenstände bleiben ohne Kategorie im Shop.', JSON_UNESCAPED_UNICODE)) ?>);">
|
||||
|
|
@ -172,7 +172,7 @@ include __DIR__ . '/includes/header.php';
|
|||
<input type="hidden" name="action" value="category_save">
|
||||
<input type="text" name="name" maxlength="80" required placeholder="Neue Kategorie, z.B. Ausrüstung" aria-label="Neue Kategorie">
|
||||
<input type="number" name="sort_order" value="<?= count($categories) * 10 + 10 ?>" class="shop-sort-input" aria-label="Reihenfolge" title="Reihenfolge">
|
||||
<button type="submit" class="button-small">+ Anlegen</button>
|
||||
<button type="submit">+ Anlegen</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
2
wiki.php
2
wiki.php
|
|
@ -301,7 +301,7 @@ $nameOf = static fn (array $u): string => $u['display_name'] !== '' ? $u['displa
|
|||
<input type="text" class="item-picker-input" id="wiki-contributor-search" required placeholder="Mitglied suchen …" aria-label="Mitglied auswählen">
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="button-small">+ Hinzufügen</button>
|
||||
<button type="submit">+ Hinzufügen</button>
|
||||
</form>
|
||||
<script type="application/json" id="wiki-contributor-list"><?= json_encode($contributorPickerItems, JSON_UNESCAPED_UNICODE | JSON_HEX_TAG | JSON_HEX_AMP) ?></script>
|
||||
<script src="<?= e(asset_url('/assets/js/item-picker.js')) ?>"></script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue