Skip to content

Commit 638f8ae

Browse files
committed
Some Fix
1 parent cdbf40a commit 638f8ae

File tree

8 files changed

+40
-9
lines changed

8 files changed

+40
-9
lines changed

CodeBeam.MudBlazor.Extensions.Docs.Wasm/wwwroot/CodeBeam.MudBlazor.Extensions.xml

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

CodeBeam.MudBlazor.Extensions/Components/TransferList/MudTransferList.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@typeparam T
44

55
<MudStack Class="@Class" Style="@Style" Row="!Vertical" Spacing="Spacing">
6-
<div>
6+
<div class="mud-transfer-list-container">
77
@if (StartTitleContent != null)
88
{
99
@StartTitleContent
@@ -34,7 +34,7 @@
3434
<MudIconButton Icon="@(Vertical ? Icons.Material.Filled.KeyboardDoubleArrowUp : Icons.Material.Filled.KeyboardDoubleArrowLeft)" Disabled="Disabled" Color="@Color" Variant="@ButtonVariant" OnClick="@(() => TransferAll(false))" />
3535
}
3636
</div>
37-
<div>
37+
<div class="mud-transfer-list-container">
3838
@if (EndTitleContent != null)
3939
{
4040
@EndTitleContent

CodeBeam.MudBlazor.Extensions/Components/TransferList/MudTransferList.razor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ public partial class MudTransferList<T> : MudComponentBase
1616
/// <summary>
1717
///
1818
/// </summary>
19-
protected string? StartClassname => new CssBuilder()
19+
protected string? StartClassname => new CssBuilder("mud-transfer-list-common")
2020
.AddClass(ClassListCommon)
2121
.AddClass(ClassStartList)
2222
.Build();
2323

2424
/// <summary>
2525
///
2626
/// </summary>
27-
protected string? EndClassname => new CssBuilder()
27+
protected string? EndClassname => new CssBuilder("mud-transfer-list-common")
2828
.AddClass(ClassListCommon)
2929
.AddClass(ClassEndList)
3030
.Build();
@@ -369,7 +369,7 @@ protected internal async Task TransferAll(bool startToEnd = true)
369369
OrderItems();
370370
await EndCollectionChanged.InvokeAsync(EndCollection);
371371
await StartCollectionChanged.InvokeAsync(StartCollection);
372-
_startList.SelectedValues = null;
372+
_startList.Clear();
373373
}
374374
else if (startToEnd == false)
375375
{
@@ -390,7 +390,7 @@ protected internal async Task TransferAll(bool startToEnd = true)
390390
OrderItems();
391391
await StartCollectionChanged.InvokeAsync(StartCollection);
392392
await EndCollectionChanged.InvokeAsync(EndCollection);
393-
_endList.SelectedValues = null;
393+
_endList.Clear();
394394
}
395395
}
396396

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
.mud-transfer-list-common {
3+
height: fill-available;
4+
height: -webkit-fill-available;
5+
}
6+
7+
.mud-transfer-list-container {
8+
display: flex;
9+
flex-direction: column;
10+
flex: 1 1 0%;
11+
}

CodeBeam.MudBlazor.Extensions/Styles/MudExtensions.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,15 @@
791791
.mud-typography-display-inline {
792792
display: inline; }
793793

794+
.mud-transfer-list-common {
795+
height: fill-available;
796+
height: -webkit-fill-available; }
797+
798+
.mud-transfer-list-container {
799+
display: flex;
800+
flex-direction: column;
801+
flex: 1 1 0%; }
802+
794803
/*@import '../abstracts/variables';*/
795804
.mud-list-extended {
796805
margin: 0;

CodeBeam.MudBlazor.Extensions/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.MudBlazor.Extensions/Styles/MudExtensions.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@import 'components/_switchm3';
1010
@import 'components/_wheel';
1111
@import 'components/_typographym3';
12+
@import 'components/_transferlist.scss';
1213

1314
@import 'components/_listextended';
1415
@import 'components/_selectextended';

CodeBeam.MudBlazor.Extensions/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.

0 commit comments

Comments
 (0)