Skip to content

Commit

Permalink
Add guest username setting to lobby
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Ambrosini <[email protected]>
  • Loading branch information
marcoambrosini committed Mar 23, 2020
1 parent e9a9b7d commit f6b2b1b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
25 changes: 21 additions & 4 deletions src/components/LobbyScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,28 @@
-->

<template>
<div class="lobby emptycontent">
<div class="icon icon-lobby" />
<h2>{{ currentConversationName }}</h2>
<p>{{ message }}</p>
<div class="lobby">
<div class="lobby emptycontent">
<div class="icon icon-lobby" />
<h2>{{ currentConversationName }}</h2>
<p>{{ message }}</p>
</div>
<SetGuestUsername />
</div>
</template>

<script>
import moment from '@nextcloud/moment'
import SetGuestUsername from './SetGuestUsername'

export default {

name: 'LobbyScreen',

components: {
SetGuestUsername,
},

computed: {

token() {
Expand Down Expand Up @@ -64,3 +72,12 @@ export default {

}
</script>

<style lang="scss" scoped>

.lobby {
display: flex;
flex-direction: column;
}

</style>
3 changes: 2 additions & 1 deletion src/components/SetGuestUsername.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export default {
/** Username form for guest users */
.username-form {
padding: 0 12px;
margin:auto;
& .icon-rename {
margin-left: 8px;
padding-left: 36px;
Expand All @@ -125,7 +126,7 @@ export default {
}
&__input {
padding-right: var(--clickable-area);
width: 300px;
width: 230px;
}
&__button {
margin-left: -44px;
Expand Down

0 comments on commit f6b2b1b

Please sign in to comment.