minor fixes
- no bio if empty - fixed prami size on mobile
This commit is contained in:
parent
f2025df922
commit
f43e1a7bc1
2 changed files with 18 additions and 16 deletions
|
@ -49,7 +49,7 @@
|
||||||
</Authorized>
|
</Authorized>
|
||||||
<NotAuthorized>
|
<NotAuthorized>
|
||||||
<NavLink>
|
<NavLink>
|
||||||
<button class="transparent square large">
|
<button class="transparent square small large">
|
||||||
<img class="responsive" src="/img/prami-neighbourhood.svg">
|
<img class="responsive" src="/img/prami-neighbourhood.svg">
|
||||||
<menu class="no-wrap">
|
<menu class="no-wrap">
|
||||||
<a class="m s row">
|
<a class="m s row">
|
||||||
|
|
|
@ -43,18 +43,20 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="statuses" class="page padding active">
|
<div id="statuses" class="page padding active">
|
||||||
<div id="info" class="box basis transparent">
|
@if(bio == null || !string.IsNullOrEmpty(bio.ToString())) {
|
||||||
<article id="bio" class="container shadowed blue-2-bg gray-9-fg">
|
<div id="info" class="box basis transparent">
|
||||||
@if (bio == null) {
|
<article id="bio" class="container shadowed blue-2-bg gray-9-fg">
|
||||||
<p><progress class="circle small"></progress></p>
|
@if (bio == null) {
|
||||||
}
|
<p><progress class="circle small"></progress></p>
|
||||||
else {
|
}
|
||||||
@bio
|
else {
|
||||||
}
|
@bio
|
||||||
</article>
|
}
|
||||||
</div>
|
</article>
|
||||||
<StatusList @ref="StatusList" StatusFunc="@(async(refresh) => await State.GetStatuses(Address, refresh))" Editable="@Editable"></StatusList>
|
</div>
|
||||||
@if(Address == State.SelectedAddressName) {
|
}
|
||||||
|
<StatusList @ref="StatusList" StatusFunc="@(async(refresh) => await State.GetStatuses(Address, refresh))" Editable="@IsMe"></StatusList>
|
||||||
|
@if(IsMe) {
|
||||||
<button class="fab circle extra large-elevate" data-ui="#post-modal">
|
<button class="fab circle extra large-elevate" data-ui="#post-modal">
|
||||||
<i class="fa-solid fa-pen-to-square"></i>
|
<i class="fa-solid fa-pen-to-square"></i>
|
||||||
</button>
|
</button>
|
||||||
|
@ -63,8 +65,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="pics" class="page padding">
|
<div id="pics" class="page padding">
|
||||||
<PicList @ref="PicList" PicsFunc="@(async(refresh) => await State.GetPics(Address, refresh))" Editable="@Editable"></PicList>
|
<PicList @ref="PicList" PicsFunc="@(async(refresh) => await State.GetPics(Address, refresh))" Editable="@IsMe"></PicList>
|
||||||
@if (Address == State.SelectedAddressName) {
|
@if (IsMe) {
|
||||||
<button class="fab circle extra large-elevate" data-ui="#post-modal">
|
<button class="fab circle extra large-elevate" data-ui="#post-modal">
|
||||||
<i class="fa-solid fa-camera-retro"></i>
|
<i class="fa-solid fa-camera-retro"></i>
|
||||||
</button>
|
</button>
|
||||||
|
@ -100,7 +102,7 @@
|
||||||
private StatusList StatusList { get; set; }
|
private StatusList StatusList { get; set; }
|
||||||
private PicList PicList { get; set; }
|
private PicList PicList { get; set; }
|
||||||
|
|
||||||
private bool Editable {
|
private bool IsMe {
|
||||||
get => Address == State.SelectedAddressName;
|
get => Address == State.SelectedAddressName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue