fix: padding and radius of caddyfile editor
All checks were successful
Caddy Manager CI build / docker (push) Successful in 57s

This commit is contained in:
2025-05-01 03:52:04 +00:00
parent cfb0f495ca
commit 36f21c864e
4 changed files with 9 additions and 8 deletions

View File

@@ -7,6 +7,9 @@ using MudBlazor;
namespace CaddyManager.Components.Pages.Caddy.CaddyReverseProxies; namespace CaddyManager.Components.Pages.Caddy.CaddyReverseProxies;
/// <summary>
/// Page to manage reverse proxy configurations in the form of *.caddy files
/// </summary>
public partial class CaddyReverseProxiesPage : ComponentBase public partial class CaddyReverseProxiesPage : ComponentBase
{ {
private bool _isProcessing; private bool _isProcessing;

View File

@@ -1,6 +1,6 @@
@attribute [StreamRendering] @attribute [StreamRendering]
<MudDialog> <MudDialog ActionsClass="pb-4 pr-6">
<DialogContent> <DialogContent>
<MudTextField @bind-Value="FileName" Label="File name" Variant="Variant.Outlined" <MudTextField @bind-Value="FileName" Label="File name" Variant="Variant.Outlined"
Style="margin-bottom: 8px;" Style="margin-bottom: 8px;"

View File

@@ -12,12 +12,10 @@
<MudCardContent> <MudCardContent>
<MudText Typo="Typo.caption" Style="padding-left: 18px; padding-bottom: 8px;">File content</MudText> <MudText Typo="Typo.caption" Style="padding-left: 18px; padding-bottom: 8px;">File content</MudText>
<StandaloneCodeEditor @ref="_codeEditor" ConstructionOptions="@EditorConstructionOptions" <StandaloneCodeEditor @ref="_codeEditor" ConstructionOptions="@EditorConstructionOptions"
CssClass="caddy-file-editor global-caddy"></StandaloneCodeEditor> CssClass="caddy-file-editor global-caddy"></StandaloneCodeEditor>
</MudCardContent> </MudCardContent>
<MudCardActions> <MudCardActions Class="pb-4 pr-4 d-flex flex-row-reverse gap-4">
<MudContainer Class="d-flex flex-row-reverse flex-grow-1 gap-4"> <MudButton Color="Color.Primary" OnClick="Submit">Save</MudButton>
<MudButton Color="Color.Primary" OnClick="Submit">Save</MudButton> <MudButton OnClick="Cancel">Cancel</MudButton>
<MudButton OnClick="Cancel">Cancel</MudButton>
</MudContainer>
</MudCardActions> </MudCardActions>
</MudCard> </MudCard>

View File

@@ -1,6 +1,6 @@
.caddy-file-editor { .caddy-file-editor {
height: 400px; height: 400px;
border-radius: 4px; border-radius: 0.75rem;
overflow: hidden; overflow: hidden;
} }