Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymGorn committed Nov 9, 2023
1 parent d8bcb99 commit 501ea22
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 48 deletions.
7 changes: 0 additions & 7 deletions src/Cropper.Blazor/Client/Components/Docs/DocsPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@
@ChildContent
</CascadingValue>
</div>
<div class="docs-navigation-footer">
</div>
</MudContainer>
@if (DisplayFooter)
{
<MudContainer MaxWidth="MaxWidth.Large" Class="mt-16">
</MudContainer>
}
<MudDrawer Class="docs-page-content-navigation-drawer" @bind-Open="_contentDrawerOpen" Breakpoint="Breakpoint.Lg" Anchor="Anchor.End" ClipMode="DrawerClipMode.Always" Elevation="0" Color="Color.Transparent">
@if (_displayView)
{
Expand Down
2 changes: 0 additions & 2 deletions src/Cropper.Blazor/Client/Components/Docs/DocsPage.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ namespace Cropper.Blazor.Client.Components.Docs
{
public partial class DocsPage : ComponentBase
{
[Parameter] public bool DisplayFooter { get; set; }

private Queue<DocsSectionLink> _bufferedSections = new();
private MudPageContentNavigation _contentNavigation;
private Stopwatch _stopwatch = Stopwatch.StartNew();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

<div class="docs-page-content">
<div class="docs-page-content">
@ChildContent
</div>

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 @@ -21,7 +21,7 @@
<div class="@GetClassNameCropper()">
<CropperComponent Class="cropper-container"
ErrorLoadImageClass="cropper-error-load"
@ref="CropperComponent"
@ref="CropperComponent"
OnCropStartEvent="OnCropStartEvent"
OnCropEndEvent="OnCropEndEvent"
OnCropEvent="OnCropEvent"
Expand Down
4 changes: 1 addition & 3 deletions src/Cropper.Blazor/Client/Pages/CropperDemo.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,13 @@ private void Destroy()
CropperComponent?.RevokeObjectUrlAsync(Src);
}

public void SetAspectRatio(decimal aspectRatio, bool isFreeAspectRatioEnabled = false)
public void SetAspectRatio(decimal aspectRatio)
{
Options.AspectRatio = aspectRatio;
IsFreeAspectRatioEnabled = aspectRatio == 0m;
CropperComponent?.SetAspectRatio(aspectRatio);
}

public void SetFreeAspectRatio() => SetAspectRatio(0, true);

public void SetViewMode(ViewMode viewMode)
{
Options.ViewMode = viewMode;
Expand Down
31 changes: 0 additions & 31 deletions src/Cropper.Blazor/Client/Styles/components/docssection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,37 +197,6 @@
}
}

@media (min-width: 1280px) {
.mud-drawer-open-responsive-lg-right .mud-main-content {
margin-right: 120px !important;
}
}

.disabled {
pointer-events: none;
cursor: default;
opacity: 0.6;
}

.docs-content-api-max-width {
max-width: 800px;
}

.docs-content-return-api-max-width, .docs-content-description-api-max-width {
max-width: 400px;
}

.docs-content-api-sm-max-width {
text-align: end;
padding: 10px;
}

.docs-content-api-desc-sm-max-width {
display: inline-flex;
flex-direction: row;
white-space: pre;
}

.warning-color {
color: var(--mud-palette-warning) !important;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Cropper.Blazor/Client/Styles/layout/_mainlayout.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.docs-title {
font-family: 'Public Sans', 'Roboto', 'Arial', sans-serif;
font-weight: 600;
font-size: 1.75rem;
font-size: 3.75rem;
}

.docs-title-description {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public static int Main()
&& new DocStrings().Execute();

Console.WriteLine($"Docs.Compiler completed in {stopWatch.ElapsedMilliseconds} msecs");

return success ? 0 : 1;
}
}
Expand Down

0 comments on commit 501ea22

Please sign in to comment.