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;
/// <summary>
/// Page to manage reverse proxy configurations in the form of *.caddy files
/// </summary>
public partial class CaddyReverseProxiesPage : ComponentBase
{
private bool _isProcessing;

View File

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

View File

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

View File

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