padding now title, fixing percentage play count
This commit is contained in:
parent
66209b7ec3
commit
c2abe3ae15
6
Selector.MAUI/Pages/Now.razor.css
Normal file
6
Selector.MAUI/Pages/Now.razor.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
body {
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
padding-bottom: 20px;
|
||||||
|
}
|
@ -63,9 +63,9 @@
|
|||||||
private string artistLink => $"https://www.last.fm/user/{Username}/library/music/{Track.Artists.First().Name}";
|
private string artistLink => $"https://www.last.fm/user/{Username}/library/music/{Track.Artists.First().Name}";
|
||||||
private string userLink => $"https://www.last.fm/user/{Username}";
|
private string userLink => $"https://www.last.fm/user/{Username}";
|
||||||
|
|
||||||
private float trackPercent => Count.Track.HasValue && Count.User.HasValue ? Count.Track.Value * 100 / Count.User.Value : 0f;
|
private float trackPercent => Count.Track.HasValue && Count.User.HasValue ? (float) Count.Track.Value * 100 / Count.User.Value : 0f;
|
||||||
private float albumPercent => Count.Album.HasValue && Count.User.HasValue ? Count.Album.Value * 100 / Count.User.Value : 0f;
|
private float albumPercent => Count.Album.HasValue && Count.User.HasValue ? (float) Count.Album.Value * 100 / Count.User.Value : 0f;
|
||||||
private float artistPercent => Count.Artist.HasValue && Count.User.HasValue ? Count.Artist.Value * 100 / Count.User.Value : 0f ;
|
private float artistPercent => Count.Artist.HasValue && Count.User.HasValue ? (float) Count.Artist.Value * 100 / Count.User.Value : 0f ;
|
||||||
|
|
||||||
private string trackPercentDisplay => string.Format("{0:#,##0.##}", trackPercent);
|
private string trackPercentDisplay => string.Format("{0:#,##0.##}", trackPercent);
|
||||||
private string albumPercentDisplay => string.Format("{0:#,##0.##}", albumPercent);
|
private string albumPercentDisplay => string.Format("{0:#,##0.##}", albumPercent);
|
||||||
|
Loading…
Reference in New Issue
Block a user