Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EventLogExpert.Components/Base/ModalChrome.razor
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<div class="footer-group" inert="@HasInlineAlert">
@if (ExtraFooterContent is not null)
{
<div class="footer-extra">
<div class="footer-extra@(StackFooterExtra ? " footer-extra-stacked" : null)">
@ExtraFooterContent
</div>
}
Expand Down
6 changes: 6 additions & 0 deletions src/EventLogExpert.Components/Base/ModalChrome.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public sealed partial class ModalChrome : ComponentBase, IAsyncDisposable

[Parameter] public bool ShowCloseButton { get; set; }

/// <summary>Opt the footer-extra slot into a full-width row above the action
/// buttons, instead of sharing the row with them. Use when the extra content
/// is a label/control pair that should align with the dialog body rather than
/// compete with the button row for horizontal space.</summary>
[Parameter] public bool StackFooterExtra { get; set; }

[Parameter] public string? Title { get; set; }

private string? DialogInlineStyle
Expand Down
3 changes: 2 additions & 1 deletion src/EventLogExpert.Components/Modals/SettingsModal.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
OnInlineAlertResolved="HandleInlineAlertResolvedAsync"
OnSave="OnSaveAsync"
@ref="ChromeRef"
SaveLabel="Save">
SaveLabel="Save"
StackFooterExtra="true">
<ChildContent>
<div class="settings-form">
<div class="flex-column-scroll">
Expand Down
15 changes: 12 additions & 3 deletions src/EventLogExpert/wwwroot/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,26 @@ html, body {

.footer-group {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
gap: 0.5rem;

margin-top: .5rem;
}

.footer-group.align-right { justify-content: flex-end; }

.footer-group .footer-extra { flex: 1 1 auto; min-width: 0; }

/* Opt-in: force the extra slot onto its own full-width row so the action
buttons wrap to a second row beneath it. Used when the extra content is a
label/control pair that should align with the dialog body. */
.footer-group .footer-extra.footer-extra-stacked { flex: 0 0 100%; }

/* Preserve the "secondary actions on the left, primary on the right" split
used by FooterPreset.ImportExportClose. The non-final .button-group is
pushed left while the trailing primary button stays at flex-end. */
.footer-group > .button-group:not(:last-child) { margin-right: auto; }

a { color: var(--clr-lightblue); }

.spinner-border {
Expand Down
Loading