fix: only add p-name to window titles if its an entry window

This commit is contained in:
dusk 2024-09-26 04:40:21 +03:00
parent 15f08a564a
commit c2a1332c51
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
export let iconUri: string = '';
export let id: string = '';
export let sticky: boolean = false;
export let entry: boolean = false;
const scaleKeyframes = [
"window-open",
@ -37,7 +38,7 @@
>
<div class="flex bg-opacity-100 pixelate-bg">
<h1
class="font-monospace text-xl text-ralsei-pink-regular grow justify-self-start self-center p-name"
class="font-monospace text-xl text-ralsei-pink-regular grow justify-self-start self-center {entry ? 'p-name' : ''}"
>
{title}
</h1>

View File

@ -18,7 +18,7 @@
</svelte:head>
<article class="flex flex-wrap md:flex-nowrap gap-4 h-entry">
<Window {title} iconUri="/icons/entry.png">
<Window {title} iconUri="/icons/entry.png" entry>
<div class="prose prose-ralsei max-w-[80ch] e-content">
<slot />
</div>