1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 13:15:18 +02:00

Merge pull request #94 from seanmorley15/development

Profile picture fix
This commit is contained in:
Sean Morley 2024-06-14 09:00:59 -04:00 committed by GitHub
commit 91f9f8e632
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 3 deletions

View file

@ -4,7 +4,7 @@
const dispatch = createEventDispatcher();
import { onMount } from "svelte";
let modal: HTMLDialogElement;
import { appVersion, copyrightYear } from "$lib/config";
import { appVersion, copyrightYear, versionChangelog } from "$lib/config";
onMount(() => {
modal = document.getElementById("my_modal_1") as HTMLDialogElement;
@ -30,7 +30,12 @@
<div class="modal-box" role="dialog" on:keydown={handleKeydown} tabindex="0">
<h3 class="font-bold text-lg">About AdventureLog</h3>
<p class="py-1">
AdventureLog {appVersion}
AdventureLog <a
target="_blank"
rel="noopener noreferrer"
class="text-primary-500 underline"
href={versionChangelog}>{appVersion}</a
>
</p>
<p class="py-1">
© {copyrightYear}

View file

@ -1,3 +1,5 @@
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 copyrightYear = "2024";

View file

@ -18,7 +18,7 @@
<div class="avatar flex items-center justify-center">
<div class="w-24 rounded">
<!-- 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>
{/if}