mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
feat: tanks tree tank card base info
This commit is contained in:
1 parent
91f3213122
commit
0d98e81a8f
2 files changed
+32
-14
No files matched your search
@@ -23,9 +23,11 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
|
||||
[Inject]
|
||||
public IMediaQueriesService MediaQueriesService { get; set; }
|
||||
|
||||
public int FrameWidth { get; set; }
|
||||
public int FrameHeigth { get; set; }
|
||||
|
||||
public int CardWidth { get; } = 200;
|
||||
public int CardHeigth { get; } = 120;
|
||||
|
||||
public string FrameStyle
|
||||
{
|
||||
get
|
||||
@@ -36,10 +38,10 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
|
||||
|
||||
protected async override Task OnInitializedAsync()
|
||||
{
|
||||
var screenWidth = await MediaQueriesService.WindowWidth();
|
||||
//var screenWidth = await MediaQueriesService.WindowWidth();
|
||||
var screenHeight = await MediaQueriesService.WindowHeight();
|
||||
|
||||
FrameWidth = Convert.ToInt32(((decimal)screenWidth) * 0.94m);
|
||||
//FrameWidth = Convert.ToInt32(((decimal)screenWidth) * 0.94m);
|
||||
FrameHeigth = screenHeight - 390;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user