Skip to content

Commit

Permalink
Fix margins and Numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdForeign committed Jul 27, 2023
1 parent dd68b88 commit f02c818
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<MudCard Class="d-flex justify-space-between flex-column mb-6 mud-height-full">
<MudCard Class="mud-height-full">
<MudCardHeader Class="border-solid border-b mud-border-lines-default">
<CardHeaderContent>
<div class="d-flex flex-column gap-2">
Expand All @@ -22,7 +22,7 @@
<MudChip Variant="Variant.Outlined" Color="Color.Primary" Class="flex-1 ma-0 mt-4">
Current aspect ratio:
</MudChip>
<MudNumericField @bind-Value="AspectRatio" Format="N2" Variant="Variant.Text"
<MudNumericField @bind-Value="AspectRatio" Format="N4" Variant="Variant.Text"
HideSpinButtons="true" ReadOnly="true" Class="flex-1" />
</div>
</MudCardContent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<MudCard Class="d-flex justify-space-between flex-column mb-6 mud-height-full">
<MudCard Class="mud-height-full">
<MudCardHeader Class="border-solid border-b mud-border-lines-default">
<CardHeaderContent>
<div class="d-flex flex-column gap-2">
Expand Down
8 changes: 4 additions & 4 deletions src/Cropper.Blazor/Client/Components/CropperDataPreview.razor
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<MudNumericField ReadOnly="true" Class="mb-2" HideSpinButtons="true" @bind-Value="X" Step=".2M" Label="X" Variant="Variant.Text"
Adornment="Adornment.End" AdornmentText="px" AdornmentColor="Color.Primary" Margin="Margin.Dense" />
Adornment="Adornment.End" AdornmentText="px" AdornmentColor="Color.Primary" Margin="Margin.Dense" Format="N4" />
<MudNumericField ReadOnly="true" Class="mb-2" HideSpinButtons="true" @bind-Value="Y" Label="Y" Step=".2M" Variant="Variant.Text"
Adornment="Adornment.End" AdornmentText="px" AdornmentColor="Color.Primary" Margin="Margin.Dense" />
Adornment="Adornment.End" AdornmentText="px" AdornmentColor="Color.Primary" Margin="Margin.Dense" Format="N4" />
<MudNumericField ReadOnly="true" Class="mb-2" HideSpinButtons="true" @bind-Value="Width" Label="Width" Step=".2M" Variant="Variant.Text"
Adornment="Adornment.End" AdornmentText="px" AdornmentColor="Color.Primary" Margin="Margin.Dense" />
Adornment="Adornment.End" AdornmentText="px" AdornmentColor="Color.Primary" Margin="Margin.Dense" Format="N4" />
<MudNumericField ReadOnly="true" Class="mb-2" HideSpinButtons="true" @bind-Value="Height" Label="Height" Step=".2M" Variant="Variant.Text"
Adornment="Adornment.End" AdornmentText="px" AdornmentColor="Color.Primary" Margin="Margin.Dense" />
Adornment="Adornment.End" AdornmentText="px" AdornmentColor="Color.Primary" Margin="Margin.Dense" Format="N4" />
<MudNumericField ReadOnly="true" Class="mb-2" HideSpinButtons="true" @bind-Value="Rotate" Label="Rotate" Step=".2M" Variant="Variant.Text"
Adornment="Adornment.End" AdornmentText="deg" AdornmentColor="Color.Primary" Margin="Margin.Dense" />
<MudNumericField ReadOnly="true" Class="mb-2" HideSpinButtons="true" @bind-Value="ScaleX" Label="ScaleX" Variant="Variant.Text" Step=".2M" />
Expand Down
8 changes: 4 additions & 4 deletions src/Cropper.Blazor/Client/Components/GetSetCropperData.razor
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@using Cropper.Blazor.Models

<MudItem xxl="12" xl="12" lg="12" md="12" sm="12" xs="12">
<MudItem xxl="12" xl="12" lg="12" md="12" sm="12" xs="12" Class="pt-0">
<MudExpansionPanels Dense="true" DisableGutters="true" DisableBorders="true" Elevation="0">
<MudExpansionPanel IsInitiallyExpanded="true" Style="background-color: var(--mud-palette-background)">
<TitleContent>
<div class="d-flex">
<MudIcon Icon="@Icons.Material.Filled.Handyman" class="mr-3"></MudIcon>
<MudText Typo="Typo.h6">Event`s settings</MudText>
<MudText Typo="Typo.h6">Event's settings</MudText>
</div>
</TitleContent>
<ChildContent>
Expand All @@ -32,12 +32,12 @@
</MudItem>


<MudItem xxl="12" xl="12" lg="12" md="12" sm="12" xs="12">
<MudItem xxl="12" xl="12" lg="12" md="12" sm="12" xs="12" Class="pt-0">
<MudExpansionPanels Dense="true" DisableGutters="true" DisableBorders="true" Elevation="0">
<MudExpansionPanel IsInitiallyExpanded="true" Style="background-color: var(--mud-palette-background)">
<TitleContent>
<div class="d-flex">
<MudIcon Icon="@Icons.Material.Filled.Handyman" class="mr-3"></MudIcon>
<MudIcon Icon="@Icons.Material.Filled.MobiledataOff" class="mr-3"></MudIcon>
<MudText Typo="Typo.h6">Get or Set cropper component data</MudText>
</div>
</TitleContent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<MudCard Class="d-flex justify-space-between flex-column mb-6 mud-height-full">
<MudCard Class="mud-height-full">
<MudCardHeader Class="border-solid border-b mud-border-lines-default">
<CardHeaderContent>
<div class="d-flex flex-column gap-2">
Expand Down
2 changes: 1 addition & 1 deletion src/Cropper.Blazor/Client/Pages/CropperDemo.razor
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</MudPaper>
</MudItem>

<MudItem sm="12" xs="12">
<MudItem sm="12" xs="12" Class="pt-0">
<MudExpansionPanels Dense="true" DisableGutters="true" DisableBorders="true" Elevation="0">
<MudExpansionPanel IsInitiallyExpanded="true" Style="background-color: var(--mud-palette-background)">
<TitleContent>
Expand Down

0 comments on commit f02c818

Please sign in to comment.