minor fixes

- no bio if empty
- fixed prami size on mobile
This commit is contained in:
Gordon Pedersen 2024-06-18 16:46:01 +10:00
parent f2025df922
commit f43e1a7bc1
2 changed files with 18 additions and 16 deletions

View file

@ -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">

View file

@ -43,6 +43,7 @@
</div>
<div id="statuses" class="page padding active">
@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) {
@ -53,8 +54,9 @@
}
</article>
</div>
<StatusList @ref="StatusList" StatusFunc="@(async(refresh) => await State.GetStatuses(Address, refresh))" Editable="@Editable"></StatusList>
@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">
<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;
}