style: separate comments from the paste container

This commit is contained in:
2026-10-18 11:55:39 -04:00
parent 45878d5af1
commit 336990f5b8
2 changed files with 4 additions and 9 deletions
@@ -237,15 +237,10 @@
} }
</script> </script>
<section id="comments-section" class="mt-6 rounded border border-neutral-700 bg-neutral-900 p-4"> <section id="comments-section" class="w-[95%] max-w-7xl rounded border-2 border-neutral-800 bg-neutral-900 p-4 mt-4">
<div class="mb-4 flex flex-wrap items-center justify-between gap-3"> <div class="mb-4 flex flex-wrap items-center justify-between gap-3">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<h2 class="text-lg font-semibold text-neutral-100">Comments</h2> <h2 class="text-lg font-semibold text-neutral-100">{comments.length} Comments</h2>
<span
class="rounded border border-neutral-700 bg-neutral-800 px-2 py-0.5 text-xs text-neutral-300"
>
{comments.length}
</span>
</div> </div>
<button <button
type="button" type="button"
@@ -1110,14 +1110,14 @@
{@html pasteContent} {@html pasteContent}
</div> </div>
{/if} {/if}
<PasteComments pasteId={data.paste.id} initialComments={data.comments ?? []} />
{:else} {:else}
<h1 class="mb-4 text-center text-4xl font-bold">Paste not found</h1> <h1 class="mb-4 text-center text-4xl font-bold">Paste not found</h1>
<h2 class="mt-2 text-center text-xl">The paste you are looking for does not exist.</h2> <h2 class="mt-2 text-center text-xl">The paste you are looking for does not exist.</h2>
{/if} {/if}
</div> </div>
<PasteComments pasteId={data.paste.id} initialComments={data.comments ?? []} />
<style> <style>
.hljs { .hljs {
background-color: var(--color-neutral-800) !important; background-color: var(--color-neutral-800) !important;