mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-03 18:50:30 +08:00
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:
committed by
Sebastian Martinez
parent
83554dc4ec
commit
db79d36dee
@@ -38,7 +38,7 @@
|
||||
styleCursor = "default",
|
||||
styleGap = "0.5rem",
|
||||
styleMinWidth,
|
||||
styleOverflow,
|
||||
styleOverflow = "hidden",
|
||||
flatTop = false,
|
||||
flatBottom = false,
|
||||
styleBackgroundColor = "var(--color-background-default)",
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user