mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
style: separate comments from the paste container
This commit is contained in:
@@ -237,15 +237,10 @@
|
||||
}
|
||||
</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="flex items-center gap-2">
|
||||
<h2 class="text-lg font-semibold text-neutral-100">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>
|
||||
<h2 class="text-lg font-semibold text-neutral-100">{comments.length} Comments</h2>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
|
||||
@@ -1110,14 +1110,14 @@
|
||||
{@html pasteContent}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<PasteComments pasteId={data.paste.id} initialComments={data.comments ?? []} />
|
||||
{:else}
|
||||
<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>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<PasteComments pasteId={data.paste.id} initialComments={data.comments ?? []} />
|
||||
|
||||
<style>
|
||||
.hljs {
|
||||
background-color: var(--color-neutral-800) !important;
|
||||
|
||||
Reference in New Issue
Block a user