Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
docs: update the collaborative editing example
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Jan 28, 2021
1 parent cde0d86 commit a7b0229
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions docs/src/demos/Examples/CollaborativeEditing/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
<editor-content class="editor__content" :editor="editor" />
<div class="editor__bottom-bar">
<div :class="`editor__status editor__status--${status}`">
{{ status }}
<template v-if="status === 'connected'">
as {{ currentUser.name }},
{{ users.length }} user{{ users.length === 1 ? '' : 's' }} online
</template>
<template v-else>
offline
</template>
</div>
<div class="editor__actions">
<div class="editor__name">
<button @click="setName">
Set Name
</button>
<button @click="updateCurrentUser({ name: getRandomName() })">
Random Name
{{ currentUser.name }}
</button>
</div>
</div>
Expand Down Expand Up @@ -172,21 +170,20 @@ export default {
justify-content: space-between;
flex-wrap: wrap;
white-space: nowrap;
padding: 0.25rem 0 0.25rem 0.25rem;
border-top: 1px solid rgba(black, 0.1);
font-size: 13px;
font-weight: 500;
color: rgba(black, 0.5);
white-space: nowrap;
padding: 0.25rem 0.75rem;
}
/* Some information about the status */
&__status {
display: flex;
align-items: center;
font-size: 13px;
font-weight: 500;
border-radius: 5px;
margin-top: 1rem;
padding: 0.25rem 0.5rem;
color: rgba(black, 0.5);
white-space: nowrap;
&::before {
content: ' ';
Expand All @@ -200,15 +197,15 @@ export default {
}
&--connecting::before {
background: #FD9170;
background: #616161;
}
&--connected::before {
background: #9DEF8F;
}
}
&__actions {
&__name {
button {
background: none;
border: none;
Expand Down

0 comments on commit a7b0229

Please sign in to comment.