Darstellung: Datum rechts in der Byline

Links neben dem Avatar stehen nur noch Anzeigename und @handle; das Datum
(samt Bump-Cooldown) rückt nach rechts, direkt links neben Melden. So
bleibt der Name ruhig und die Zeit steht immer an derselben Stelle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 21:05:34 +01:00
co-authored by Claude Opus 5.5
parent b3c4a60630
commit bed563d369
5 changed files with 12 additions and 8 deletions
+3 -1
View File
@@ -562,8 +562,10 @@ img.avatar-sm { width: var(--avatar-sm); height: var(--avatar-sm); }
.byline .author { display: flex; flex-direction: column; line-height: 1.25; } .byline .author { display: flex; flex-direction: column; line-height: 1.25; }
.byline .author a { text-decoration: none; } .byline .author a { text-decoration: none; }
/* Melden steht rechts in der Byline. */ /* Datum rechts in der Byline, Melden (falls da) direkt daneben ganz außen. */
.byline .byline-time { margin-left: auto; }
.byline .report { margin-left: auto; } .byline .report { margin-left: auto; }
.byline .byline-time + .report { margin-left: 0; }
/* --- Profil --- /* --- Profil ---
Header-Bild im Format 3:1 über die ganze Spalte; ohne Bild ein schwarzer Header-Bild im Format 3:1 über die ganze Spalte; ohne Bild ein schwarzer
+5 -5
View File
@@ -64,11 +64,11 @@ function LiveCard({ entry: e }: { entry: Entry }) {
<Link to={profile}> <Link to={profile}>
<img className="avatar avatar-sm" src={avatarUrl(e.avatar)} alt="" loading="lazy" /> <img className="avatar avatar-sm" src={avatarUrl(e.avatar)} alt="" loading="lazy" />
</Link> </Link>
<AuthorName <AuthorName u={e} to={profile} />
u={e} <span className="byline-time">
to={profile} {formatTime(e.created_at)}
meta={<> · {formatTime(e.created_at)}<span className="cooldown">{bump.cooldown}</span></>} <span className="cooldown">{bump.cooldown}</span>
/> </span>
{!own && report.button} {!own && report.button}
</div> </div>
<div className="threadline-wrapper"> <div className="threadline-wrapper">
+1
View File
@@ -20,6 +20,7 @@
<li>Abschicken jetzt mit <kbd>Strg</kbd> + <kbd>Enter</kbd> (Mac: <kbd>Cmd</kbd> + <kbd>Enter</kbd>) statt <kbd>Shift</kbd> + <kbd>Enter</kbd></li> <li>Abschicken jetzt mit <kbd>Strg</kbd> + <kbd>Enter</kbd> (Mac: <kbd>Cmd</kbd> + <kbd>Enter</kbd>) statt <kbd>Shift</kbd> + <kbd>Enter</kbd></li>
<li>Helles Design: Hintergrund in warmem Off-White statt reinem Weiß, angenehmer zu lesen</li> <li>Helles Design: Hintergrund in warmem Off-White statt reinem Weiß, angenehmer zu lesen</li>
<li>Beiträge und Chats: Anzeigename und @handle stehen zweizeilig neben dem Profilbild</li> <li>Beiträge und Chats: Anzeigename und @handle stehen zweizeilig neben dem Profilbild</li>
<li>Beiträge und Chats: Das Datum steht jetzt rechts in der Kopfzeile</li>
</ul> </ul>
<h3>07.11.2026</h3> <h3>07.11.2026</h3>
<ul> <ul>
+1 -1
View File
@@ -12,7 +12,7 @@ export type Author = { handle: string; display_name: string };
// AuthorName steht in der Byline neben dem Avatar, zweizeilig: oben der // AuthorName steht in der Byline neben dem Avatar, zweizeilig: oben der
// Anzeigename (ohne einen der Handle), darunter "@handle" und meta, etwa die // Anzeigename (ohne einen der Handle), darunter "@handle" und meta, etwa die
// Zeit. Beide Zeilen verlinken auf to. // Zahl ungelesener Nachrichten. Beide Zeilen verlinken auf to.
export function AuthorName({ u, to, meta }: { u: Author; to: string; meta?: ReactNode }) { export function AuthorName({ u, to, meta }: { u: Author; to: string; meta?: ReactNode }) {
return ( return (
<span className="author"> <span className="author">
+2 -1
View File
@@ -67,8 +67,9 @@ function ChatList({ handle }: { handle: string }) {
<AuthorName <AuthorName
u={c} u={c}
to={chatPath(c.handle)} to={chatPath(c.handle)}
meta={<> · {formatTime(c.last_at)}{c.unread > 0 && <strong> · {c.unread} neu</strong>}</>} meta={c.unread > 0 && <strong> · {c.unread} neu</strong>}
/> />
<span className="byline-time">{formatTime(c.last_at)}</span>
</li> </li>
))} ))}
</ul> </ul>