Fix thread reply overflow

This also fixes the top-level comment corners when the reply textarea is
open but there are no other replies.
This commit is contained in:
Rūdolfs Ošiņš
2025-02-23 13:43:06 +01:00
committed by Sebastian Martinez
parent 83554dc4ec
commit db79d36dee
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
styleCursor = "default",
styleGap = "0.5rem",
styleMinWidth,
styleOverflow,
styleOverflow = "hidden",
flatTop = false,
flatBottom = false,
styleBackgroundColor = "var(--color-background-default)",
+1 -4
View File
@@ -65,7 +65,7 @@
const root = $derived(thread.root);
const replies = $derived(thread.replies);
const style = $derived(
replies.length > 0
replies.length > 0 || showReplyForm
? "--local-clip-path: var(--2px-top-corner-fill)"
: "--local-clip-path: var(--2px-corner-fill)",
);
@@ -144,11 +144,9 @@
disallowEmptyBody
{submitInProgress}
{rid}
inline
placeholder="Reply to comment"
submitCaption="Reply"
focus
stylePadding="0.5rem 0.75rem"
close={() => (showReplyForm = false)}
submit={async ({ comment, embeds }) => {
try {
@@ -165,7 +163,6 @@
}} />
</div>
{/if}
<div></div>
</div>
</Border>
{/if}