style(adminui): group Raw modal button pairs, drop py-0 hack, use tree-twist
UI sweep task 4 (Shared/Raw). Markup-only; no behavior change. - Wrap the Cancel+primary modal-footer pairs in a Bootstrap btn-group across RawNameDialog, RawDriverTypeDialog, RawConfirmDialog, RawTagModal, RawManualTagEntryModal, RawCsvImportModal, RawBrowseModal and RawCsvExportModal (the last mixes a <button> with the download <a>, which is valid btn-group membership; the download attribute is unchanged). - RawBrowseModal: the rebirth confirm pair (Publish rebirth request + Cancel) becomes a btn-group btn-group-sm in place of the d-flex gap-2 wrapper. - RawCsvImportModal: drop the py-0 padding hack from the per-row remove button; .btn-sm sizing covers it. - RawTree: replace the expander's inline style="width:18px" (and the matching leaf placeholder) with the shared .tree-twist class. The CSV import all-or-nothing commit gating and RawTree's tree logic are untouched.
This commit is contained in:
+13
-11
@@ -119,7 +119,7 @@
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-sm btn-outline-danger py-0"
|
||||
<button type="button" class="btn btn-sm btn-outline-danger"
|
||||
title="Remove this row from the import"
|
||||
@onclick="() => RemoveRow(row.RowNumber)">✕</button>
|
||||
</td>
|
||||
@@ -144,16 +144,18 @@
|
||||
}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-outline-secondary" @onclick="Close">Cancel</button>
|
||||
<button type="button" class="btn btn-primary"
|
||||
disabled="@(!CanCommit || _committing)"
|
||||
@onclick="Commit">
|
||||
@if (_committing)
|
||||
{
|
||||
<span class="spinner-border spinner-border-sm"></span>
|
||||
}
|
||||
Commit @RemainingCount tag@(RemainingCount == 1 ? "" : "s")
|
||||
</button>
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" class="btn btn-outline-secondary" @onclick="Close">Cancel</button>
|
||||
<button type="button" class="btn btn-primary"
|
||||
disabled="@(!CanCommit || _committing)"
|
||||
@onclick="Commit">
|
||||
@if (_committing)
|
||||
{
|
||||
<span class="spinner-border spinner-border-sm"></span>
|
||||
}
|
||||
Commit @RemainingCount tag@(RemainingCount == 1 ? "" : "s")
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user