Skip to content

Commit 28b0230

Browse files
5knnbdwmclaude
andcommitted
fix(web): collapsed composer centers drafts that start with a list
A leading list kept its block margin, which pushed the first line to the bottom of the one-line resting composer and clipped it. Block margins now stop at the editor's edges. Co-authored-by: Claude <[email protected]>
1 parent 98beed1 commit 28b0230

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎apps/web/src/index.css‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,6 +1922,17 @@ code {
19221922
margin: 0.65rem 0;
19231923
}
19241924

1925+
/* Block spacing separates blocks, not the draft from the composer edge. A
1926+
leading list or quote would otherwise push the first line down, and the
1927+
one-line resting composer clips it. */
1928+
.composer-tiptap > :first-child {
1929+
margin-top: 0;
1930+
}
1931+
1932+
.composer-tiptap > :last-child {
1933+
margin-bottom: 0;
1934+
}
1935+
19251936
/* A heading at the top of a draft should not push the first line down. */
19261937
.composer-tiptap :is(h1, h2, h3, h4, h5, h6):first-child {
19271938
margin-top: 0;

0 commit comments

Comments
 (0)