-
-
+
@@ -71,8 +78,13 @@
@@ -138,28 +120,61 @@ export default {
$stack-spacing: 10px;
$stack-width: 300px;
+ .board-wrapper {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ max-height: calc(100vh - 50px);
+ }
+
.board {
margin-left: $board-spacing;
+ position: relative;
+ height: calc(100% - 44px);
+ overflow-x: scroll;
}
- .stack {
- width: $stack-width;
- padding: $stack-spacing;
- padding-top: 0;
- }
-
- /*
- .smooth-dnd-container.vertical {
+ /**
+ * Combined rules to handle proper board scrolling and
+ * drag and drop behavior
+ */
+ .smooth-dnd-container.horizontal {
display: flex;
- flex-direction: column;
- }
+ align-items: stretch;
+ .smooth-dnd-draggable-wrapper::v-deep {
+ display: flex;
+ height: auto;
- .smooth-dnd-container.vertical > .smooth-dnd-draggable-wrapper {
- overflow: initial;
- }
+ .stack {
+ display: flex;
+ flex-direction: column;
- .smooth-dnd-container.vertical .smooth-dnd-draggable-wrapper {
- height: auto;
- } */
+ .smooth-dnd-container.vertical {
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ padding: 3px;
+ padding-top: 0;
+ /**
+ * Use this to scroll each stack individually
+ * This currenly has the issue that the popover menu will be cut off
+ */
+ /*
+ overflow-x: scroll;
+ height: calc(100vh - 50px - 44px * 2 - 30px);
+ max-height: calc(100vh - 50px - 44px * 2 - 30px);
+ */
+ }
+
+ .smooth-dnd-container.vertical > .smooth-dnd-draggable-wrapper {
+ overflow: initial;
+ }
+
+ .smooth-dnd-container.vertical .smooth-dnd-draggable-wrapper {
+ height: auto;
+ }
+ }
+ }
+ }
diff --git a/src/components/board/SharingTabSidebar.vue b/src/components/board/SharingTabSidebar.vue
index 8e7e29adb..b1d3725e1 100644
--- a/src/components/board/SharingTabSidebar.vue
+++ b/src/components/board/SharingTabSidebar.vue
@@ -2,6 +2,7 @@
-
+
{{ t('deck', 'Delete stack') }}
+
+
+ {{ t('deck', 'Add card') }}
+
+
-
onDropCard(stack.id, $event)">
-
-
-
-
-
-
+
+
onDropCard(stack.id, $event)">
+
+
+
+
@@ -93,6 +99,7 @@ export default {
editing: false,
copiedStack: '',
newCardTitle: '',
+ showAddCard: false,
}
},
computed: {
@@ -147,6 +154,7 @@ export default {
}
this.$store.dispatch('addCard', newCard)
this.newCardTitle = ''
+ this.showAddCard = false
},
},
}
@@ -155,29 +163,24 @@ export default {
diff --git a/src/components/board/TagsTabSidebar.vue b/src/components/board/TagsTabSidebar.vue
index 45a92d9c9..ca33db14f 100644
--- a/src/components/board/TagsTabSidebar.vue
+++ b/src/components/board/TagsTabSidebar.vue
@@ -133,6 +133,7 @@ export default {