diff --git a/src/App.vue b/src/App.vue index 271f045d4..3c358c80f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -143,13 +143,6 @@ export default { } } } - - - + + diff --git a/src/components/board/Stack.vue b/src/components/board/Stack.vue index 8d3fb9009..c04eba3cb 100644 --- a/src/components/board/Stack.vue +++ b/src/components/board/Stack.vue @@ -162,6 +162,7 @@ export default { ]), ...mapState({ showArchived: state => state.showArchived, + cardDetailsInModal: state => state.cardDetailsInModal, }), cardsByStack() { return this.$store.getters.cardsByStack(this.stack.id).filter((card) => { @@ -248,7 +249,9 @@ export default { this.$refs.newCardInput.focus() this.animate = false }) - this.$router.push({ name: 'card', params: { cardId: newCard.id } }) + if (!this.cardDetailsInModal) { + this.$router.push({ name: 'card', params: { cardId: newCard.id } }) + } } catch (e) { showError('Could not create card: ' + e.response.data.message) } finally { diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 26ba98574..bec93b6e6 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -571,14 +571,16 @@ export default { // FIXME: Obivously we should at some point not randomly reuse the sidebar component // since this is not oficially supported .modal__card .app-sidebar { + $modal-padding: 14px; border: 0; - min-width: 100%; + min-width: calc(100% - #{$modal-padding*2}); position: relative; top: 0; left: 0; right: 0; - max-width: 100%; - max-height: 100%; + max-width: calc(100% - #{$modal-padding*2}); + padding: 14px; + max-height: calc(100% - #{$modal-padding*2}); &::v-deep { .app-sidebar-header { position: sticky; diff --git a/src/components/cards/CardItem.vue b/src/components/cards/CardItem.vue index 37e1251ba..2ca8bb36b 100644 --- a/src/components/cards/CardItem.vue +++ b/src/components/cards/CardItem.vue @@ -31,7 +31,7 @@ class="card" @click="openCard">
-

+

{{ card.title }}

@@ -41,6 +41,7 @@
+ @click.stop="openCard">
  • - {{ label.title }} + {{ label.title }}
  • @@ -171,6 +172,10 @@ export default { background-color: var(--color-main-background); margin-bottom: $card-spacing; + &::v-deep * { + cursor: pointer; + } + body.dark &, body.theme--dark & { border: 2px solid var(--color-border); }