From 1e4dfe5110891cfda914aac124acb16f8abb0f2f Mon Sep 17 00:00:00 2001 From: Ricky Stretch Date: Mon, 9 Mar 2026 16:26:07 -0400 Subject: [PATCH] v0.3.4 style fixes --- .env.example | 2 +- backend/package.json | 2 +- build.sh | 2 +- frontend/package.json | 2 +- frontend/src/components/Message.css | 6 +++++- frontend/src/index.css | 12 ++++++++++++ 6 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index f9155f9..c45256d 100644 --- a/.env.example +++ b/.env.example @@ -7,7 +7,7 @@ TZ=UTC # Copy this file to .env and customize # Image version to run (set by build.sh, or use 'latest') -JAMA_VERSION=0.3.3 +JAMA_VERSION=0.3.4 # Default admin credentials (used on FIRST RUN only) ADMIN_NAME=Admin User diff --git a/backend/package.json b/backend/package.json index 084892a..9142f85 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "jama-backend", - "version": "0.3.3", + "version": "0.3.4", "description": "TeamChat backend server", "main": "src/index.js", "scripts": { diff --git a/build.sh b/build.sh index e36d70e..bd2ad72 100644 --- a/build.sh +++ b/build.sh @@ -13,7 +13,7 @@ # ───────────────────────────────────────────────────────────── set -euo pipefail -VERSION="${1:-0.3.3}" +VERSION="${1:-0.3.4}" ACTION="${2:-}" REGISTRY="${REGISTRY:-}" IMAGE_NAME="jama" diff --git a/frontend/package.json b/frontend/package.json index c838230..5cb538b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "jama-frontend", - "version": "0.3.3", + "version": "0.3.4", "private": true, "scripts": { "dev": "vite", diff --git a/frontend/src/components/Message.css b/frontend/src/components/Message.css index 2bc88a7..6a498f8 100644 --- a/frontend/src/components/Message.css +++ b/frontend/src/components/Message.css @@ -216,7 +216,11 @@ padding: 0 2px; } -.out .mention { color: #afd0ff; background: rgba(255,255,255,0.15); } +/* Sender bubble — primary colour is the background, so mention must contrast against it */ +.out .mention { + color: #ffffff; + background: rgba(255,255,255,0.22); +} .msg-image { max-width: 240px; diff --git a/frontend/src/index.css b/frontend/src/index.css index a65c40f..a1d8e2a 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -379,3 +379,15 @@ a { color: inherit; text-decoration: none; } [data-theme="dark"] .msg-input-raw { caret-color: var(--text-primary); } + +/* Night mode: .in bubble (dark surface) — base mention colour is too dark, use light primary */ +[data-theme="dark"] .in .mention { + color: #6ab0f5; + background: rgba(106,176,245,0.15); +} + +/* Night mode: .out bubble — white stays white, just ensure background tint works on darker primary */ +[data-theme="dark"] .out .mention { + color: #ffffff; + background: rgba(255,255,255,0.25); +}