feat: banner at the bottom of the system card
This commit is contained in:
parent
b5e15ed589
commit
8df7979dd2
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
let bannerOpen = false;
|
let bannerOpen = false;
|
||||||
const toggleBannerModal = () => (bannerOpen = !bannerOpen);
|
const toggleBannerModal = () => (bannerOpen = !bannerOpen);
|
||||||
|
|
||||||
|
let settings = JSON.parse(localStorage.getItem("pk-settings"));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
@ -52,4 +54,7 @@
|
|||||||
<b>Description:</b><br />
|
<b>Description:</b><br />
|
||||||
{@html htmlDescription}
|
{@html htmlDescription}
|
||||||
</div>
|
</div>
|
||||||
|
{#if user.banner && settings && settings.appearance.banner_bottom}
|
||||||
|
<img src={user.banner} alt="your system banner" class="w-100 mb-3 rounded" style="max-height: 15em; object-fit: cover"/>
|
||||||
|
{/if}
|
||||||
<Button style="flex: 0" color="primary" on:click={() => editMode = true}>Edit</Button>
|
<Button style="flex: 0" color="primary" on:click={() => editMode = true}>Edit</Button>
|
Loading…
x
Reference in New Issue
Block a user