mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 20:55:19 +02:00
Profile picture fix
This commit is contained in:
parent
a0cbb826f7
commit
4c1bdf5faf
3 changed files with 10 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
let modal: HTMLDialogElement;
|
let modal: HTMLDialogElement;
|
||||||
import { appVersion, copyrightYear } from "$lib/config";
|
import { appVersion, copyrightYear, versionChangelog } from "$lib/config";
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
modal = document.getElementById("my_modal_1") as HTMLDialogElement;
|
modal = document.getElementById("my_modal_1") as HTMLDialogElement;
|
||||||
|
@ -30,7 +30,12 @@
|
||||||
<div class="modal-box" role="dialog" on:keydown={handleKeydown} tabindex="0">
|
<div class="modal-box" role="dialog" on:keydown={handleKeydown} tabindex="0">
|
||||||
<h3 class="font-bold text-lg">About AdventureLog</h3>
|
<h3 class="font-bold text-lg">About AdventureLog</h3>
|
||||||
<p class="py-1">
|
<p class="py-1">
|
||||||
AdventureLog {appVersion}
|
AdventureLog <a
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
class="text-primary-500 underline"
|
||||||
|
href={versionChangelog}>{appVersion}</a
|
||||||
|
>
|
||||||
</p>
|
</p>
|
||||||
<p class="py-1">
|
<p class="py-1">
|
||||||
© {copyrightYear}
|
© {copyrightYear}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
export let appVersion = "Web v0.3.0";
|
export let appVersion = "Web v0.3.0";
|
||||||
|
export let versionChangelog =
|
||||||
|
"https://github.com/seanmorley15/AdventureLog/releases/tag/v0.3.0";
|
||||||
export let appTitle = "AdventureLog";
|
export let appTitle = "AdventureLog";
|
||||||
export let copyrightYear = "2024";
|
export let copyrightYear = "2024";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<div class="avatar flex items-center justify-center">
|
<div class="avatar flex items-center justify-center">
|
||||||
<div class="w-24 rounded">
|
<div class="w-24 rounded">
|
||||||
<!-- svelte-ignore a11y-missing-attribute -->
|
<!-- svelte-ignore a11y-missing-attribute -->
|
||||||
<img src={data.user.icon} class="w-24 rounded-full" />
|
<img src="/cdn/profile-pics/{data.user.icon}" class="w-24 rounded-full" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue