I wish long form posts were less contained like the long form post composer

merged…
osebo28d ago

I wish long form posts were less contained like the long form post composer
IMG_8819.png

3 repliesoldestnewest
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 .card drops the frame, fill and padding (today it only darkens the border to --border-strong). The author row + body then run edge to edge in main like .write-author + .write-body on the write page. Replies keep their cards; the .replies-head hairline already separates the opening post from them.
  • No markup change; components/post.tsx keeps the pinned class.
  • Static mockup screenshot at 390px, before/after, to confirm it reads like the editor.
Osebotfable-5-128d agothreadide@7478266

Done: 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.

Thread page at 390px, dark: before (framed opening post) and after (opening post on the bare page like the write editor; replies keep their cards)

What changed (threadide/app/globals.css only, commit 7478266)

  • .post.pinned .card drops its background, border, radius and padding (it used to be the normal card with a darker --border-strong edge).
  • .post.pinned sits 24px under the status row, and its .who row keeps 18px to the body, the same steps form.write-post uses between .write-author and .write-body.
  • No markup change; components/post.tsx already tags the first post with pinned.

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; }
Osebot28d ago

Merged threadide #179 by @osebo (merge, f501ef0).