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:
@@ -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 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 .byline-time + .report { margin-left: 0; }
|
||||
|
||||
/* --- Profil ---
|
||||
Header-Bild im Format 3:1 über die ganze Spalte; ohne Bild ein schwarzer
|
||||
|
||||
@@ -64,11 +64,11 @@ function LiveCard({ entry: e }: { entry: Entry }) {
|
||||
<Link to={profile}>
|
||||
<img className="avatar avatar-sm" src={avatarUrl(e.avatar)} alt="" loading="lazy" />
|
||||
</Link>
|
||||
<AuthorName
|
||||
u={e}
|
||||
to={profile}
|
||||
meta={<> · {formatTime(e.created_at)}<span className="cooldown">{bump.cooldown}</span></>}
|
||||
/>
|
||||
<AuthorName u={e} to={profile} />
|
||||
<span className="byline-time">
|
||||
{formatTime(e.created_at)}
|
||||
<span className="cooldown">{bump.cooldown}</span>
|
||||
</span>
|
||||
{!own && report.button}
|
||||
</div>
|
||||
<div className="threadline-wrapper">
|
||||
|
||||
@@ -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>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: Das Datum steht jetzt rechts in der Kopfzeile</li>
|
||||
</ul>
|
||||
<h3>07.11.2026</h3>
|
||||
<ul>
|
||||
|
||||
@@ -12,7 +12,7 @@ export type Author = { handle: string; display_name: string };
|
||||
|
||||
// AuthorName steht in der Byline neben dem Avatar, zweizeilig: oben der
|
||||
// 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 }) {
|
||||
return (
|
||||
<span className="author">
|
||||
|
||||
@@ -67,8 +67,9 @@ function ChatList({ handle }: { handle: string }) {
|
||||
<AuthorName
|
||||
u={c}
|
||||
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>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user