From 68170691b1f65509790cc72d8d581a2898dd6365 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 23 Jan 2023 15:13:25 +0000 Subject: Improve layout --- .../BreakoutRoomsEditor/BreakoutRoomsEditor.vue | 17 ++- .../BreakoutRoomsParticipantsEditor.vue | 131 +++++++++++++-------- .../BreakoutRooms/BreakoutRoomsTab.vue | 6 +- 3 files changed, 96 insertions(+), 58 deletions(-) (limited to 'src') diff --git a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue index ceb99549c..a2cdd20b9 100644 --- a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue +++ b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue @@ -25,7 +25,6 @@

{{ modalTitle }}

-
- - {{ t('spreed', 'Create rooms') }} - -
@@ -120,5 +119,11 @@ export default { padding: 20px; justify-content: flex-start; align-items: flex-start; + height: calc(100% - 80px); +} + +::v-deep .modal-container { + overflow: hidden !important; + height: 100%; } diff --git a/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue b/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue index a1b8dbb24..e9d51f42b 100644 --- a/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue +++ b/src/components/BreakoutRoomsEditor/BreakoutRoomsParticipantsEditor.vue @@ -21,52 +21,63 @@ @@ -77,6 +88,7 @@ import GoogleCircles from 'vue-material-design-icons/GoogleCircles.vue' import Reload from 'vue-material-design-icons/Reload.vue' import NcAppNavigationItem from '@nextcloud/vue/dist/Components/NcAppNavigationItem.js' import SelectableParticipant from './SelectableParticipant.vue' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' export default { name: 'BreakoutRoomsParticipantsEditor', @@ -88,6 +100,7 @@ export default { Reload, NcAppNavigationItem, SelectableParticipant, + NcButton, }, props: { @@ -118,7 +131,7 @@ export default { attendeesById() { // Just get all attendees for this conversation without mapping to an array // Like participants, but object, not array - return this.$store.state.participants.attendees[this.token] + return this.$store.state.participantsStore.attendees[this.token] }, unassignedParticipants() { @@ -133,9 +146,12 @@ export default { }, hasSelected() { - return this.selectedParticipants.length !== 0 + return this.selectedParticipants.length > 0 }, + hasAssigned() { + return this.assignments.flat().length > 0 + }, }, created() { @@ -144,14 +160,6 @@ export default { methods: { initialiseAssignments() { - // let count = 0 - // while (count < this.roomNumber) { - // this.assignments.push([]) - // count++ - // } - - // Just more clean for me - // If it looks complex - then I'd prefer "for" instead of "while". It's fixed this.assignments = Array.from(Array(this.roomNumber), () => []) }, @@ -180,13 +188,38 @@ export default { diff --git a/src/components/RightSidebar/BreakoutRooms/BreakoutRoomsTab.vue b/src/components/RightSidebar/BreakoutRooms/BreakoutRoomsTab.vue index 822b89ddf..f7783e6b3 100644 --- a/src/components/RightSidebar/BreakoutRooms/BreakoutRoomsTab.vue +++ b/src/components/RightSidebar/BreakoutRooms/BreakoutRoomsTab.vue @@ -236,9 +236,9 @@ export default { font-weight: bold !important; } -// TODO: upsteream collapse icon position fix +// TODO: upstream collapse icon position fix ::v-deep .icon-collapse { - position: absolute !important; - left: 0; +position: absolute !important; +left: 0; } -- cgit v1.2.3