impr: add inert property to disclosures for closed

This commit is contained in:
Xylight committed 2025-09-28 15:20:16 -07:00
1 parent fdcef736cf
commit 1f6fe23be5
4 files changed
+20 -11

No files matched your search

+3 -3
View File
@@ -165,7 +165,7 @@
{#if node.comment_view.creator_is_moderator}
<Icon
src={ShieldCheck}
size="14"
size="16"
micro
class="text-green-500"
aria-label={$t('class.moderator')}
@@ -242,12 +242,12 @@
</label>
{/if}
<input
class="hidden comment-expand"
class="appearance-none absolute inset-0 pointer-events-none comment-expand"
type="checkbox"
id="comment-expand-{node.comment_view.comment.id}"
bind:checked={open}
/>
<div class={['expand max-w-full', contentClass]}>
<div class={['expand max-w-full', contentClass]} inert={!open}>
<div id="comment-content">
<div
class={[