Two random words as the name of anonymous collaborators; no z-order change when read-only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
wkh
2026-09-28 20:50:16 +02:00
co-authored by Claude Opus 5.5
parent 5871524421
commit ed099cfbda
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -447,7 +447,7 @@ async function onSample() {
:key="p.clientId"
class="avatar peer"
:style="{ background: p.color }"
>{{ p.name.replace(/^Anonym \(/, '').slice(0, 1).toUpperCase() }}</span>
>{{ p.name.slice(0, 1).toUpperCase() }}</span>
<span v-if="library.peers.value.length > 5" class="more">+{{ library.peers.value.length - 5 }}</span>
</span>
+2 -1
View File
@@ -90,7 +90,8 @@ function onDrop(e: DragEvent) {
function selectObj(id: string) {
store.selectObject(id);
store.bringToFront(id);
// z-order is document content: read-only viewers just select
if (!store.ui.readOnly) store.bringToFront(id);
}
</script>