File tree Expand file tree Collapse file tree 4 files changed +7
-18
lines changed
src/DotNetElements.AppFramework.MudBlazorExtensions Expand file tree Collapse file tree 4 files changed +7
-18
lines changed Original file line number Diff line number Diff line change 4
4
5
5
@if (SimpleTable )
6
6
{
7
- <td class =" py-0 pl-2 @Class" style =" @($ " width: {Width}px; " ) @Style " >
7
+ <td class =" py-0 pl-2 @Class" style =" @($ " white-space: nowrap; width: 0px; text-align: right; {Style} " ) " >
8
8
<TableActionsButton OnClick =" () => OnEditEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Edit" Color =" Color.Warning" Style =" @(EditButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
9
9
<TableActionsButton OnClick =" () => OnDeleteEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Delete" Color =" Color.Error" Style =" @(DeleteButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
10
10
@ChildContent
11
11
</td >
12
12
}
13
13
else
14
14
{
15
- <MudTd Class =" @($" py-0 pl-2 {@Class} " )" Style =" @($" width: {Width}px; {@ Style}" )" DataLabel =" Actions" >
15
+ <MudTd Class =" @($" py-0 pl-2 {@Class} " )" Style =" @($" white-space: nowrap; width: 0px; text-align: right; { Style}" )" DataLabel =" Actions" >
16
16
<TableActionsButton OnClick =" () => OnEditEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Edit" Color =" Color.Warning" Style =" @(EditButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
17
17
<TableActionsButton OnClick =" () => OnDeleteEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Delete" Color =" Color.Error" Style =" @(DeleteButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
18
18
@ChildContent
41
41
42
42
[Parameter ]
43
43
public RenderFragment ? ChildContent { get ; set ; }
44
-
45
- [Parameter ]
46
- public int Width { get ; set ; } = 140 ;
47
44
}
Original file line number Diff line number Diff line change 5
5
6
6
@if (SimpleTable )
7
7
{
8
- <td class =" py-0 pl-2 @Class" style =" @($ " width: {Width}px; " ) @Style " >
8
+ <td class =" py-0 pl-2 @Class" style =" @($ " white-space: nowrap; width: 0px; text-align: right; {Style} " ) " >
9
9
<TableActionsButton OnClick =" () => OnEditEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Edit" Color =" Color.Warning" Style =" @(EditButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
10
10
<TableActionsButton OnClick =" () => OnDeleteEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Delete" Color =" Color.Error" Style =" @(DeleteButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
11
11
<TableActionsButton OnClick =" () => OnShowEntryDetails.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Info" Color =" Color.Default" Style =" @(DetailsButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
14
14
}
15
15
else
16
16
{
17
- <MudTd Class =" @($" py-0 pl-2 {@Class} " )" Style =" @($" width: {Width}px; {@ Style}" )" DataLabel =" Actions" >
17
+ <MudTd Class =" @($" py-0 pl-2 {@Class} " )" Style =" @($" white-space: nowrap; width: 0px; text-align: right; { Style}" )" DataLabel =" Actions" >
18
18
<TableActionsButton OnClick =" () => OnEditEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Edit" Color =" Color.Warning" Style =" @(EditButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
19
19
<TableActionsButton OnClick =" () => OnDeleteEntry.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Delete" Color =" Color.Error" Style =" @(DeleteButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
20
20
<TableActionsButton OnClick =" () => OnShowEntryDetails.InvokeAsync(Context)" Icon =" @Icons.Material.Outlined.Info" Color =" Color.Default" Style =" @(DetailsButtonShown ? " visibility: visible; " : " visibility: hidden; " )" />
50
50
51
51
[Parameter ]
52
52
public RenderFragment ? ChildContent { get ; set ; }
53
-
54
- [Parameter ]
55
- public int Width { get ; set ; } = 140 ;
56
53
}
Original file line number Diff line number Diff line change 2
2
3
3
@if (SimpleTable )
4
4
{
5
- <th class =" @Class" style =" @($ " width: {Width}px; " ) @Style " >
5
+ <th class =" @Class" style =" @($ " white-space: nowrap; width: 0px; text-align: right; {Style} " ) " >
6
6
Actions
7
7
</th >
8
8
}
9
9
else
10
10
{
11
- <MudTh Class =" @Class" Style =" @($" width: {Width}px; {@ Style}" )" >
11
+ <MudTh Class =" @Class" Style =" @($" white-space: nowrap; width: 0px; text-align: right; { Style}" )" >
12
12
Actions
13
13
</MudTh >
14
14
}
17
17
{
18
18
[Parameter ]
19
19
public bool SimpleTable { get ; set ; }
20
-
21
- [Parameter ]
22
- public int Width { get ; set ; } = 140 ;
23
20
}
Original file line number Diff line number Diff line change 1
- using Microsoft . AspNetCore . Components ;
2
-
3
- namespace DotNetElements . AppFramework . MudBlazorExtensions . Util ;
1
+ namespace DotNetElements . AppFramework . MudBlazorExtensions . Util ;
4
2
5
3
public sealed class StatusListItem
6
4
{
You can’t perform that action at this time.
0 commit comments