File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
+ <PackageReference Include =" Humanizer" Version =" 2.14.1" />
10
11
<PackageReference Include =" Microsoft.AspNetCore.SignalR.Client" Version =" 7.0.15" />
11
12
<PackageReference Include =" Microsoft.Extensions.Http" Version =" 8.0.0" />
12
13
<PackageReference Include =" Microsoft.Extensions.Logging" Version =" 8.0.0" />
Original file line number Diff line number Diff line change 8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
+ <PackageReference Include =" Humanizer" Version =" 2.14.1" />
11
12
<PackageReference Include =" Microsoft.AspNetCore.SignalR.Client" Version =" 7.0.15" />
12
13
<PackageReference Include =" Microsoft.Extensions.Http" Version =" 8.0.0" />
13
14
<PackageReference Include =" MudBlazor" Version =" 6.13.0" />
Original file line number Diff line number Diff line change 121
121
{
122
122
CloseOnEscapeKey = false ,
123
123
DisableBackdropClick = true ,
124
- CloseButton = false ,
125
- FullScreen = true
124
+ CloseButton = false
126
125
});
127
126
128
127
Barcode = string .Empty ;
Original file line number Diff line number Diff line change 1
1
@using GrocyScanner .Core .Models
2
2
@using GrocyScanner .Core .Providers
3
3
@using GrocyScanner .Core .GrocyClient
4
+ @using Humanizer
4
5
5
6
@inject IProductProvider ProductProvider
6
7
@inject IGrocyClient GrocyClient
12
13
<MudCard Outlined =" true" >
13
14
@if (! string .IsNullOrEmpty (Product .ImageUrl ))
14
15
{
15
- <div class =" py-2" >
16
- <MudCardMedia Image = " @Product.ImageUrl" Height =" 150" Style = " background-size: contain; " ></ MudCardMedia >
16
+ <div class =" py-2 d-flex align-items-center justify-content-center " >
17
+ <img class = " rounded " src = " @Product.ImageUrl" height =" 150" alt = " product image " / >
17
18
</div >
18
19
}
19
20
20
21
<MudCardContent >
21
- <MudText Typo =" Typo.subtitle1 " Color = " Color.Info " >@Product.Gtin </MudText >
22
- <MudText Typo =" Typo.h4" Class =" fw-bold" >@Product.Name </MudText >
22
+ <MudText Typo =" Typo.h5 " Class = " fw-bold " >@Product.Gtin </MudText >
23
+ <MudText Typo =" Typo.h4" Class =" fw-bold" >@Product.Name.Humanize() </MudText >
23
24
24
25
<MudDatePicker
25
26
Variant =" Variant.Filled"
35
36
Label =" Price"
36
37
Margin =" Margin.Dense"
37
38
Variant =" Variant.Filled"
38
- Min =" 0.0" />
39
+ Min =" 0.0"
40
+ Max =" int.MaxValue" />
39
41
<MudNumericField
40
42
@bind-Value =" FormAmount"
41
43
Format =" N0"
42
44
Label =" Amount"
43
45
Margin =" Margin.Dense"
44
46
Variant =" Variant.Filled"
45
- Min =" 0 "
47
+ Min =" 1 "
46
48
Max =" 999" />
47
49
</MudCardContent >
48
-
49
- <MudCardActions >
50
-
51
- </MudCardActions >
52
50
</MudCard >
53
51
}
54
52
@if (IsLoading )
You can’t perform that action at this time.
0 commit comments