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