mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 11:50:05 +02:00
feat: media query added
This commit is contained in:
1 parent
bebb5ee692
commit
d3e1e52e19
7 files changed
+45
No files matched your search
@@ -22,6 +22,9 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
|
||||
[Inject]
|
||||
public INotificationsService Notifications { get; set; }
|
||||
|
||||
[Inject]
|
||||
public IMediaQueriesService MediaQueriesService { get; set; }
|
||||
|
||||
|
||||
[Parameter]
|
||||
public long AccountId { get; set; }
|
||||
@@ -32,12 +35,16 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
|
||||
|
||||
public IReadOnlyList<ISection> AchievementsBySection { get; set; }
|
||||
|
||||
public bool SmallScreen { get; set; }
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
var loggedInInfo = await LocalStorageService.GetItemAsync<LoginInfo>(Constants.LoginInfoLocalStorageKey);
|
||||
var settings = await LocalStorageService.ReadSettings();
|
||||
CurrentRealmType = settings.RealmType;
|
||||
|
||||
SmallScreen = await MediaQueriesService.IsScreenWidthLessThen(1000);
|
||||
|
||||
try
|
||||
{
|
||||
// Maybe add refresh button instead of calling mutation each time
|
||||
|
||||
Reference in new issue
Block a user