Skip to content

Commit e0c5e9e

Browse files
Merge pull request #8 from stavroskasidis/release/1.4
Release/1.4
2 parents 68ec007 + 1026f57 commit e0c5e9e

5 files changed

Lines changed: 16 additions & 6 deletions

File tree

BlazorDialog/BlazorDialog.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<Copyright />
1717
<PackageTags>blazor blazor-component blazor-dialog dialog modal blazor-modal blazordialog blazormodaldialog blazormodal razor razor-components razorcomponents</PackageTags>
1818
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
19-
<Version>1.3.0</Version>
19+
<Version>1.4.0</Version>
2020
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
2121
<Product>BlazorDialog</Product>
2222
</PropertyGroup>

BlazorDialog/Components/Dialog.razor

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<CascadingValue Value="this.Input" Name="DialogInput">
99
@if (!IsCustom)
1010
{
11-
<div class="blazor-dialog-container @(Centered ? "blazor-dialog-centered" : "")" style="z-index:@(BaseZIndex + dialogDepth)">
11+
<div class="blazor-dialog-container @CssClass @(Centered ? "blazor-dialog-centered" : "")" style="z-index:@(BaseZIndex + dialogDepth)">
1212
<div class="blazor-dialog-content-wrapper @ContentWrapperCssClass @AnimationCssClass">
1313
<div class="blazor-dialog-content">
1414
@ChildContent
@@ -89,6 +89,11 @@
8989
/// </summary>
9090
[Parameter] public bool IsCustom { get; set; }
9191

92+
/// <summary>
93+
/// Adds a custom css class to the wrapper of the dialog.
94+
/// </summary>
95+
[Parameter] public string CssClass { get; set; }
96+
9297
protected TaskCompletionSource<object> taskCompletionSource;
9398
internal Action<object> OnDialogHide;
9499
protected void NotifyDialogHidden(object result) => OnDialogHide?.Invoke(result);

BlazorDialog/wwwroot/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@
115115
}
116116

117117
.blazor-dialog-content-wrapper-windowed{
118-
max-height:100%;
118+
max-height:90%;
119119
overflow: auto;
120120
}
121121

122122
@media (min-width: 576px) {
123123
.blazor-dialog-content-wrapper-normal {
124124
max-width: 500px;
125-
margin: 2.75rem auto;
125+
/*margin: 2.75rem auto;*/
126126
}
127127
}
128128

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ Make sure that there is a call to `app.UseStaticFiles();` in your server project
7676
7777
## Release Notes
7878

79-
<details open="open"><summary>1.3</summary>
79+
<details open="open"><summary>1.4</summary>
80+
81+
>- Added css class parameter to dialog component.
82+
</details>
83+
84+
<details><summary>1.3</summary>
8085

8186
>- Added base z-index parameter to dialog component.
8287
</details>

TestApps/BlazorDialog.TestAppsCommon/IndexCommon.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<option value="@DialogAnimation.Zoom">@DialogAnimation.Zoom</option>
2323
<option value="@DialogAnimation.FadeIn">@DialogAnimation.FadeIn</option>
2424
</select>
25-
<Dialog Id="simple-large-dialog" Size="size" Centered="isCentered" Animation="animation">
25+
<Dialog Id="simple-large-dialog" Size="size" Centered="isCentered" Animation="animation" CssClass="custom-class">
2626
<DialogInputProvider TInput="string">
2727
<DialogHeader ShowClose="true">
2828
<h4>@context.Input</h4>

0 commit comments

Comments
 (0)