feat: re-add comment url photonifying

This commit is contained in:
Xylight committed 2023-11-27 17:07:30 -08:00
1 parent 0e29987d7f
commit 7181b44036
2 files changed
+8 -4

No files matched your search

+7 -3
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { PUBLIC_SSR_ENABLED } from '$env/static/public'
import { md, mdInline, photonify } from '$lib/components/markdown/markdown'
import { onMount } from 'svelte'
@@ -36,9 +37,12 @@
From server to client, the rendered html won't change for some reason
I have no clue why this fixes it, but it does.
*/
onMount(() => {
rendered = `${rendered} `
})
if (PUBLIC_SSR_ENABLED.toLowerCase() == 'true') {
onMount(() => {
rendered = `${rendered} `
replaceURLs(div, rendered)
})
}
</script>
<div
+1 -1
View File
@@ -24,7 +24,7 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-positive-tabindex -->
<div
class="!isolate fixed backdrop-blur-sm top-0 left-0 w-screen h-screen overflow-auto bg-black/50
class="!isolate fixed top-0 left-0 w-screen h-screen overflow-auto bg-black/50
flex flex-col z-[200] overscroll-contain"
transition:fade={{ duration: 200 }}
on:click={() => (open = false)}