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

View file

@ -43,6 +43,7 @@
</div> </div>
<div id="statuses" class="page padding active"> <div id="statuses" class="page padding active">
@if(bio == null || !string.IsNullOrEmpty(bio.ToString())) {
<div id="info" class="box basis transparent"> <div id="info" class="box basis transparent">
<article id="bio" class="container shadowed blue-2-bg gray-9-fg"> <article id="bio" class="container shadowed blue-2-bg gray-9-fg">
@if (bio == null) { @if (bio == null) {
@ -53,8 +54,9 @@
} }
</article> </article>
</div> </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"> <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;
} }