diff --git a/web/src/App.css b/web/src/App.css index 421fedc..140f919 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -76,10 +76,10 @@ details summary { color: var(--muted); font-size: 12px; cursor: pointer; } .message-pane { display: flex; flex-direction: column; height: 100%; min-width: 0; } .message-pane-header { padding: 10px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 13px; color: var(--text); } .messages { flex: 1; overflow-y: auto; padding: 8px 0; display: flex; flex-direction: column; } -.message { display: grid; grid-template-columns: 44px 120px 1fr; align-items: baseline; gap: 0; padding: 2px 16px; line-height: 1.5; } +.message { display: flex; align-items: baseline; gap: 0; padding: 2px 16px; line-height: 1.5; } .message:hover { background: rgba(255,255,255,0.02); } -.message-ts { color: var(--muted); font-size: 11px; } -.message-alias { font-weight: 600; font-size: 13px; text-align: right; padding-right: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.message-ts { color: var(--muted); font-size: 11px; white-space: nowrap; flex-shrink: 0; width: 52px; } +.message-alias { font-weight: 600; font-size: 13px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; width: 90px; padding-right: 10px; } .message.mine .message-alias { color: var(--accent); } .message-text { word-break: break-word; font-size: 14px; color: var(--text); } .compose { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); } diff --git a/web/src/components/MessagePane.tsx b/web/src/components/MessagePane.tsx index f2870bb..94073d0 100644 --- a/web/src/components/MessagePane.tsx +++ b/web/src/components/MessagePane.tsx @@ -45,7 +45,7 @@ export function MessagePane() { {roomMessages.map((msg, i) => { const mine = msg.from === localPeer?.id const alias = aliasFor(msg.from) - const time = new Date(msg.ts).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) + const time = new Date(msg.ts).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', hour12: false }) return (