diff --git a/frontend/src/ContactPanel.vue b/frontend/src/ContactPanel.vue index 4ea2625..1b2f07e 100644 --- a/frontend/src/ContactPanel.vue +++ b/frontend/src/ContactPanel.vue @@ -38,21 +38,16 @@ function fmtTime(t) {

Send us a message — the reply appears here.

-
+
-
-
- {{ m.admin }} +
+ {{ m.admin || 'you' }} ⌂ -
+ +
@@ -117,15 +112,10 @@ function fmtTime(t) { } .contact-msg { - max-width: 88%; - margin: 0.45rem 0; - padding: 0.35rem 0.6rem; - border-radius: 0.6rem; - background: color-mix(var(--muted) 12%, transparent); + padding: 0.55rem 0; } -.contact-msg.mine { - margin-left: auto; - background: color-mix(var(--accent) 16%, transparent); +.contact-msg + .contact-msg { + border-top: 1px solid var(--line); } .contact-msg-body { overflow-wrap: break-word; @@ -146,22 +136,22 @@ function fmtTime(t) { text-decoration: none; white-space: nowrap; } -.contact-msg footer { +.contact-msg header { display: flex; gap: 0.5rem; - justify-content: flex-end; align-items: baseline; color: var(--muted); font-size: 0.75rem; } -.contact-msg footer .who { +.contact-msg header .who { font-weight: 600; + color: var(--text, CanvasText); } -.contact-msg footer .page { +.contact-msg header .page { color: var(--muted); text-decoration: none; } -.contact-msg footer .page:hover { +.contact-msg header .page:hover { color: var(--accent); } diff --git a/frontend/src/MessagesView.vue b/frontend/src/MessagesView.vue index 4322466..3655932 100644 --- a/frontend/src/MessagesView.vue +++ b/frontend/src/MessagesView.vue @@ -87,19 +87,14 @@ function send(md) {
-
+
-
-
- {{ m.admin }} +
+ {{ m.admin || 'visitor' }} {{ m.page }} -
+ +
@@ -189,15 +184,10 @@ function send(md) { } .contact-msg { - max-width: 85%; - margin: 0.45rem 0; - padding: 0.35rem 0.6rem; - border-radius: 0.6rem; - background: color-mix(var(--muted) 12%, transparent); + padding: 0.55rem 0; } -.contact-msg.mine { - margin-left: auto; - background: color-mix(var(--accent) 16%, transparent); +.contact-msg + .contact-msg { + border-top: 1px solid var(--line); } .contact-msg-body { overflow-wrap: break-word; @@ -218,24 +208,24 @@ function send(md) { text-decoration: none; white-space: nowrap; } -.contact-msg footer { +.contact-msg header { display: flex; gap: 0.5rem; - justify-content: flex-end; align-items: baseline; color: var(--muted); font-size: 0.75rem; } -.contact-msg footer .who { +.contact-msg header .who { font-weight: 600; + color: var(--text, CanvasText); } -.contact-msg footer .page { +.contact-msg header .page { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } -.contact-msg footer .page:hover { +.contact-msg header .page:hover { color: var(--accent); }