Skip to content

Commit dc7e7bf

Browse files
authored
SplitterFixes (#143)
1 parent 0f1c2df commit dc7e7bf

File tree

11 files changed

+33
-20
lines changed

11 files changed

+33
-20
lines changed

CodeBeam.MudExtensions/Components/CsvMapper/MudCsvMapper.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<MudFab HtmlTag="Button"
3434
Color="Color.Secondary"
3535
Label="@LocalizedStrings.ChooseFile"
36-
Icon="@Icons.Outlined.CloudDownload" Size="Size.Large"/>@LocalizedStrings.OrDragAndDrop
36+
Icon="@Icons.Material.Outlined.CloudDownload" Size="Size.Large"/>@LocalizedStrings.OrDragAndDrop
3737
</h3>
3838
</MudPaper>
3939
<MudPaper Elevation="0" class="d-flex justify-center align-content-center mud-transparent m2">
@@ -94,11 +94,11 @@
9494
}
9595
@if (!matched && item.CreatingDefaultValue)
9696
{
97-
<MudIconButton Style="padding-left: 8px;" Icon="@Icons.Outlined.ArrowBackIosNew" Color="Color.Secondary" OnClick="@(() => item.CreatingDefaultValue = !item.CreatingDefaultValue)"></MudIconButton>
97+
<MudIconButton Style="padding-left: 8px;" Icon="@Icons.Material.Outlined.ArrowBackIosNew" Color="Color.Secondary" OnClick="@(() => item.CreatingDefaultValue = !item.CreatingDefaultValue)"></MudIconButton>
9898
}
9999
else if(!matched && item.AllowDefaultValue)
100100
{
101-
<MudIconButton Style="padding-left: 8px;" Icon="@Icons.Outlined.Add" Color="Color.Secondary" OnClick="@(() => item.CreatingDefaultValue = !item.CreatingDefaultValue)"></MudIconButton>
101+
<MudIconButton Style="padding-left: 8px;" Icon="@Icons.Material.Outlined.Add" Color="Color.Secondary" OnClick="@(() => item.CreatingDefaultValue = !item.CreatingDefaultValue)"></MudIconButton>
102102
}
103103
</MudText>
104104
@if (!matched && !confirmed)
@@ -122,7 +122,7 @@
122122
{
123123
<MudPaper Elevation="0" Width="180px" Class="rounded-lg mud-background-gray pa-2 my-1">
124124
<EditForm Model="@_model" OnSubmit="OnSubmit">
125-
<MudIconButton Style="padding-left: 8px;" Icon="@Icons.Outlined.ArrowBackIosNew" Color="Color.Secondary" OnClick="@(() => _addSectionOpen = false)"></MudIconButton>
125+
<MudIconButton Style="padding-left: 8px;" Icon="@Icons.Material.Outlined.ArrowBackIosNew" Color="Color.Secondary" OnClick="@(() => _addSectionOpen = false)"></MudIconButton>
126126
<MudTextField @bind-Value="_model.Name" Label="Expected Header" Required="true" For="@(() => _model.Name)"></MudTextField>
127127
<MudSwitch Color="Color.Primary" T="bool" @bind-Checked="_model.Required">Required</MudSwitch>
128128
<MudSwitch Color="Color.Primary" T="bool" @bind-Checked="_model.AllowDefaultValue">Allow Default Value</MudSwitch>

CodeBeam.MudExtensions/Components/Gallery/MudGallery.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828

2929
@if (ShowToolboxNavigationButtons == true)
3030
{
31-
<MudIconButton Class="absolute white-text" Size="Size.Large" DisableRipple="true" Icon="@Icons.Outlined.ChevronLeft" Style="bottom: 0px; top: 0px; left: 4px;" OnClick="@(() => SetAdjacentImage(-1))" />
32-
<MudIconButton Class="absolute white-text" Size="Size.Large" DisableRipple="true" Icon="@Icons.Outlined.ChevronRight" Style="bottom: 0px; top: 0px; right: 4px;" OnClick="@(() => SetAdjacentImage(1))" />
31+
<MudIconButton Class="absolute white-text" Size="Size.Large" DisableRipple="true" Icon="@Icons.Material.Outlined.ChevronLeft" Style="bottom: 0px; top: 0px; left: 4px;" OnClick="@(() => SetAdjacentImage(-1))" />
32+
<MudIconButton Class="absolute white-text" Size="Size.Large" DisableRipple="true" Icon="@Icons.Material.Outlined.ChevronRight" Style="bottom: 0px; top: 0px; right: 4px;" OnClick="@(() => SetAdjacentImage(1))" />
3333
}
3434

3535
@if (ShowToolboxCloseButton == true)
3636
{
37-
<MudIconButton Class="absolute white-text" DisableRipple="true" Icon="@Icons.Outlined.Close" Style="top: 4px; right: 0px;" OnClick="@(() => ChangeMenu(false))" />
37+
<MudIconButton Class="absolute white-text" DisableRipple="true" Icon="@Icons.Material.Outlined.Close" Style="top: 4px; right: 0px;" OnClick="@(() => ChangeMenu(false))" />
3838
}
3939
</MudContainer>
4040
</div>

CodeBeam.MudExtensions/Components/Splitter/MudSplitter.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
@($".mud-splitter-generate-{_styleGuid} {{ grid-template-columns: {Dimension.ToInvariantString()}% {(100 - Dimension).ToInvariantString()}%; }}")
1919
2020
.mud-splitter-thumb-@(_styleGuid) ::-webkit-slider-thumb {
21-
@(Color == Color.Default ? "background-color: var(--mud-palette-action-default) !important;" : $"background-color: var(--mud-palette-{Color.ToDescriptionString()}) !important;") @(StyleBar)
21+
@(Color == Color.Default ? "background-color: var(--mud-palette-action-default) !important;" : $"background-color: var(--mud-palette-{Color.ToDescriptionString()}) !important;")
2222
@(Height != null ? $"height: {Height} !important;" : null)
2323
@(StyleBar)
2424
}
2525
2626
.mud-splitter-thumb-@(_styleGuid) ::-moz-range-thumb {
27-
@(Color == Color.Default ? "background-color: var(--mud-palette-action-default) !important;" : $"background-color: var(--mud-palette-{Color.ToDescriptionString()}) !important;") @(StyleBar)
27+
@(Color == Color.Default ? "background-color: var(--mud-palette-action-default) !important;" : $"background-color: var(--mud-palette-{Color.ToDescriptionString()}) !important;")
2828
@(Height != null ? $"height: {Height} !important;" : null)
2929
@(StyleBar)
3030
}

CodeBeam.MudExtensions/Components/Splitter/MudSplitter.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public partial class MudSplitter : MudComponentBase
2323
.Build();
2424

2525
protected string SliderClassname => new CssBuilder($"mud-splitter-thumb mud-splitter-thumb-{_styleGuid} mud-splitter-track")
26+
.AddClass("mud-splitter-thumb-disabled", EnableSlide == false)
2627
.Build();
2728

2829
/// <summary>

CodeBeam.MudExtensions/Styles/Components/_splitter.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@
4949
width: 8px !important;
5050
border: none !important;
5151
border-radius: 0 !important;
52-
cursor: ew-resize !important;
52+
cursor: ew-resize !important;
53+
}
54+
55+
.mud-splitter-thumb-disabled ::-webkit-slider-thumb {
56+
cursor: not-allowed !important;
5357
}
5458

5559
.mud-splitter-thumb ::-moz-range-thumb {
@@ -64,3 +68,7 @@
6468
border-radius: 0 !important;
6569
cursor: ew-resize !important;
6670
}
71+
72+
.mud-splitter-thumb-disabled ::-moz-range-thumb {
73+
cursor: not-allowed !important;
74+
}

CodeBeam.MudExtensions/Styles/MudExtensions.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@
216216
border-radius: 0 !important;
217217
cursor: ew-resize !important; }
218218

219+
.mud-splitter-thumb-disabled ::-webkit-slider-thumb {
220+
cursor: not-allowed !important; }
221+
219222
.mud-splitter-thumb ::-moz-range-thumb {
220223
visibility: visible !important;
221224
appearance: none !important;
@@ -228,6 +231,9 @@
228231
border-radius: 0 !important;
229232
cursor: ew-resize !important; }
230233

234+
.mud-splitter-thumb-disabled ::-moz-range-thumb {
235+
cursor: not-allowed !important; }
236+
231237
.mud-stepper-header {
232238
min-height: 62px;
233239
border-radius: var(--mud-default-borderradius); }

CodeBeam.MudExtensions/Styles/MudExtensions.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CodeBeam.MudExtensions/wwwroot/MudExtensions.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ComponentViewer.Docs/Pages/Examples/GalleryExample1.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
<MudText Class="white-text pa-4">Image @(_gallery.GetSelectedImageIndex() + 1) - Description</MudText>
1010
</ToolboxTopContent>
1111
<ToolboxBottomContent>
12-
<MudIconButton Class="white-text" Icon="@Icons.Outlined.Edit" />
13-
<MudIconButton Class="white-text" Icon="@Icons.Outlined.RotateRight" OnClick="ArrangeRotateValue" />
12+
<MudIconButton Class="white-text" Icon="@Icons.Material.Outlined.Edit" />
13+
<MudIconButton Class="white-text" Icon="@Icons.Material.Outlined.RotateRight" OnClick="ArrangeRotateValue" />
1414
@if (_showToolboxCloseButton == false)
1515
{
16-
<MudIconButton Class="white-text" Icon="@Icons.Outlined.Close" OnClick="@(() => _gallery.ChangeMenu(false))" />
16+
<MudIconButton Class="white-text" Icon="@Icons.Material.Outlined.Close" OnClick="@(() => _gallery.ChangeMenu(false))" />
1717
}
1818
</ToolboxBottomContent>
1919
</MudGallery>

ComponentViewer.Docs/Pages/Examples/SelectExtendedExample4.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<MudText><b>@context.Value.Item1</b></MudText>
1717
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
1818
<MudStack Row="true">
19-
<MudIcon Icon="@Icons.Outlined.Person" />
19+
<MudIcon Icon="@Icons.Material.Outlined.Person" />
2020
<MudText>@(context.Value.Item3 == true ? "Retired" : "Active")</MudText>
2121
</MudStack>
2222
<MudChip Color="Color.Info" Variant="Variant.Outlined">Total Score: @context.Value.Item2</MudChip>
@@ -33,7 +33,7 @@
3333
<MudText><b>@context.Value.Item1</b></MudText>
3434
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
3535
<MudStack Row="true">
36-
<MudIcon Icon="@Icons.Outlined.Person" />
36+
<MudIcon Icon="@Icons.Material.Outlined.Person" />
3737
<MudText>@(context.Value.Item3 == true ? "Retired" : "Active")</MudText>
3838
</MudStack>
3939
<MudChip Color="Color.Info" Variant="Variant.Outlined">Total Score: @context.Value.Item2</MudChip>
@@ -46,7 +46,7 @@
4646
<MudText><b>@context.Value.Item1</b></MudText>
4747
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
4848
<MudStack Row="true">
49-
<MudIcon Icon="@Icons.Outlined.Person" />
49+
<MudIcon Icon="@Icons.Material.Outlined.Person" />
5050
@*<MudText>@(context.Value.Item3 == true ? "Retired" : "Active")</MudText>*@
5151
</MudStack>
5252
<MudChip Color="Color.Info" Variant="Variant.Outlined">Total Score: @context.Value.Item2</MudChip>

0 commit comments

Comments
 (0)