Bugfix Richtungsstrich

This commit is contained in:
concierge committed 2026-11-06 12:04:18 +01:00
1 parent 821461bc07
commit f1fb926c2f
3 files changed
+17 -8

No files matched your search

+9 -4
View File
@@ -472,31 +472,36 @@ html[data-theme="dark"] .mobile-chat-card.own {
border: 0 !important; border: 0 !important;
background: transparent !important; background: transparent !important;
box-shadow: none !important; box-shadow: none !important;
box-sizing: border-box;
} }
.mobile-user-dot { .mobile-user-dot {
position: relative; position: absolute;
left: 50%;
top: 50%;
z-index: 2; z-index: 2;
width: 16px; width: 16px;
height: 16px; height: 16px;
margin: -8px 0 0 -8px;
border-radius: 50%; border-radius: 50%;
background: #2563eb; background: #2563eb;
border: 3px solid #fff; border: 3px solid #fff;
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
box-sizing: border-box;
} }
.mobile-user-heading { .mobile-user-heading {
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 50%; top: 50%;
z-index: 1; z-index: 3;
width: 2px; width: 2px;
height: 20px; height: 20px;
margin: -20px 0 0 -1px;
border-radius: 999px; border-radius: 999px;
background: #2563eb; background: #2563eb;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
pointer-events: none; pointer-events: none;
transform: translate(-50%, -100%) rotate(var(--user-heading, 0deg)); transform: rotate(var(--user-heading, 0deg));
transform-origin: 50% 100%; transform-origin: 50% 100%;
} }
+1 -1
View File
@@ -5,7 +5,7 @@
* damit er sowohl die mobilen Views als auch die statischen Assets * damit er sowohl die mobilen Views als auch die statischen Assets
* kontrolliert. Der Cache-Name wird pro App-Wurzel gebildet. * kontrolliert. Der Cache-Name wird pro App-Wurzel gebildet.
*/ */
const VERSION = 'cmbnet-pwa-v19'; const VERSION = 'cmbnet-pwa-v21';
const BASE = new URL('./', self.location).href; const BASE = new URL('./', self.location).href;
const SHELL_CACHE = `${VERSION}-shell`; const SHELL_CACHE = `${VERSION}-shell`;
const TILE_CACHE = `${VERSION}-tiles`; const TILE_CACHE = `${VERSION}-tiles`;
+7 -3
View File
@@ -1499,10 +1499,11 @@ function sendChat() {
function addChatEntry(entry) { function addChatEntry(entry) {
const key = `${entry.code}|${entry.sender_id}|${entry.ts}|${entry.text}`; const key = `${entry.code}|${entry.sender_id}|${entry.ts}|${entry.text}`;
if (state.chatKeys.has(key)) return; if (state.chatKeys.has(key)) return false;
state.chatKeys.add(key); state.chatKeys.add(key);
state.chatMessages.push(entry); state.chatMessages.push(entry);
renderChat(); renderChat();
return true;
} }
function renderChat() { function renderChat() {
@@ -1834,7 +1835,7 @@ function handleWs(event) {
} }
const senderName = getSenderName(message, payload); const senderName = getSenderName(message, payload);
addChatEntry({ const isNewMessage = addChatEntry({
sender_id: message.sender_id, sender_id: message.sender_id,
code: message.code, code: message.code,
ts: normalizeTs(message.ts) || Date.now(), ts: normalizeTs(message.ts) || Date.now(),
@@ -1843,7 +1844,10 @@ function handleWs(event) {
toName: getReceiverName(message, payload) toName: getReceiverName(message, payload)
}); });
if (Number(message.sender_id) !== currentAccountId) { // Wiederholt zugestellte Nachrichten (z. B. nach einem Reconnect)
// dürfen weder Ton noch Dialog oder Systembenachrichtigung erneut
// auslösen.
if (isNewMessage && Number(message.sender_id) !== currentAccountId) {
playSound(); playSound();
// In-App-Dialog und, sofern erlaubt, Systembenachrichtigung. // In-App-Dialog und, sofern erlaubt, Systembenachrichtigung.
showIncomingChatDialog(text, senderName); showIncomingChatDialog(text, senderName);