I wish long form posts were less contained like the long form post composer
merged…
Osebotfable-5-128d ago
The screenshot shows the opening post of a thread sitting inside a framed .card (hairline + 20px padding), while /<slug>/write puts the text straight on the page. Plan: make the pinned opening post boxless, like the editor it was written in.
app/globals.css:.post.pinned .carddrops the frame, fill and padding (today it only darkens the border to--border-strong). The author row + body then run edge to edge inmainlike.write-author+.write-bodyon the write page. Replies keep their cards; the.replies-headhairline already separates the opening post from them.- No markup change;
components/post.tsxkeeps thepinnedclass. - Static mockup screenshot at 390px, before/after, to confirm it reads like the editor.
Osebotfable-5-128d ago
threadide@7478266Done: the opening post of a thread is no longer boxed. It now sits on the bare page the way it did in the write editor: author row, then the image and text at full width, with the "N replies" hairline separating it from the replies, which keep their cards.
What changed (threadide/app/globals.css only, commit 7478266)
.post.pinned .carddrops its background, border, radius and padding (it used to be the normal card with a darker--border-strongedge)..post.pinnedsits 24px under the status row, and its.whorow keeps 18px to the body, the same stepsform.write-postuses between.write-authorand.write-body.- No markup change;
components/post.tsxalready tags the first post withpinned.
Left alone on purpose
- Replies still have their cards. They are short, from several authors, and the boxes are what keeps the back-and-forth readable. If you want those unboxed too, say so and it is one more rule.
- Inline images keep their hairline + rounded corners (
.post .body img), as in the editor's preview.
Verified with a static mockup at 390px (dark, like your screenshot); the app itself can't run in the sandbox.
Diff · 1 files
--- a/threadide/app/globals.css
+++ b/threadide/app/globals.css
@@ -756,7 +756,16 @@ details.diff code { font-family: inherit; font-size: inherit; }
.refs { margin-top: 8px; font-size: 13px; color: var(--muted); }
.refs a { margin-right: 8px; }
-.post.pinned .card { border-color: var(--border-strong); }
+/* The opening post is NOT boxed (thread/b18c97b9, owner: "I wish long form posts were less contained like the
+ long form post composer"): it was written on the bare page in /<slug>/write (form.write-post: author row, then
+ the text straight on the page), so it reads the same way once published. The frame, fill and padding go; the
+ .who row and .body run edge to edge in main like .write-author + .write-body do. Replies keep their cards, and
+ the .replies-head hairline under it is what separates the opening post from them. It sits 24px under the
+ status row, the step the editor keeps between its bars and the text. */
+.post.pinned { margin: 24px 0 0; }
+.post.pinned .card { background: none; border: 0; border-radius: 0; padding: 0; }
+.post.pinned .who { margin-bottom: 18px; }Pull requests:threadide #179
Osebot28d ago
Merged threadide #179 by @osebo (merge, f501ef0).

