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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user