Merge pull request #2435 from nextcloud/bugfix/2423

This commit is contained in:
Julius Härtl
2020-10-13 21:21:19 +02:00
committed by GitHub
4 changed files with 25 additions and 14 deletions

View File

@@ -143,13 +143,6 @@ export default {
} }
} }
} }
</style>
<style lang="scss">
.multiselect {
width: 100%;
}
.modal__card { .modal__card {
min-width: 320px; min-width: 320px;
@@ -159,3 +152,11 @@ export default {
height: 80vh; height: 80vh;
} }
</style> </style>
<style lang="scss">
.multiselect {
width: 100%;
}
</style>

View File

@@ -162,6 +162,7 @@ export default {
]), ]),
...mapState({ ...mapState({
showArchived: state => state.showArchived, showArchived: state => state.showArchived,
cardDetailsInModal: state => state.cardDetailsInModal,
}), }),
cardsByStack() { cardsByStack() {
return this.$store.getters.cardsByStack(this.stack.id).filter((card) => { return this.$store.getters.cardsByStack(this.stack.id).filter((card) => {
@@ -248,7 +249,9 @@ export default {
this.$refs.newCardInput.focus() this.$refs.newCardInput.focus()
this.animate = false 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) { } catch (e) {
showError('Could not create card: ' + e.response.data.message) showError('Could not create card: ' + e.response.data.message)
} finally { } finally {

View File

@@ -571,14 +571,16 @@ export default {
// FIXME: Obivously we should at some point not randomly reuse the sidebar component // FIXME: Obivously we should at some point not randomly reuse the sidebar component
// since this is not oficially supported // since this is not oficially supported
.modal__card .app-sidebar { .modal__card .app-sidebar {
$modal-padding: 14px;
border: 0; border: 0;
min-width: 100%; min-width: calc(100% - #{$modal-padding*2});
position: relative; position: relative;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
max-width: 100%; max-width: calc(100% - #{$modal-padding*2});
max-height: 100%; padding: 14px;
max-height: calc(100% - #{$modal-padding*2});
&::v-deep { &::v-deep {
.app-sidebar-header { .app-sidebar-header {
position: sticky; position: sticky;

View File

@@ -31,7 +31,7 @@
class="card" class="card"
@click="openCard"> @click="openCard">
<div class="card-upper"> <div class="card-upper">
<h3 v-if="isArchived || showArchived || !canEdit"> <h3 v-if="compactMode || isArchived || showArchived || !canEdit">
{{ card.title }} {{ card.title }}
</h3> </h3>
<h3 v-else-if="!editing"> <h3 v-else-if="!editing">
@@ -41,6 +41,7 @@
<form v-if="editing" <form v-if="editing"
v-click-outside="cancelEdit" v-click-outside="cancelEdit"
class="dragDisabled" class="dragDisabled"
@click.stop
@keyup.esc="cancelEdit" @keyup.esc="cancelEdit"
@submit.prevent="finishedEdit(card)"> @submit.prevent="finishedEdit(card)">
<input v-model="copiedCard.title" <input v-model="copiedCard.title"
@@ -59,9 +60,9 @@
name="zoom" name="zoom"
tag="ul" tag="ul"
class="labels" class="labels"
@click="openCard"> @click.stop="openCard">
<li v-for="label in labelsSorted" :key="label.id" :style="labelStyle(label)"> <li v-for="label in labelsSorted" :key="label.id" :style="labelStyle(label)">
<span @click="applyLabelFilter(label)">{{ label.title }}</span> <span @click.stop="applyLabelFilter(label)">{{ label.title }}</span>
</li> </li>
</transition-group> </transition-group>
<div v-show="!compactMode" class="card-controls compact-item" @click="openCard"> <div v-show="!compactMode" class="card-controls compact-item" @click="openCard">
@@ -171,6 +172,10 @@ export default {
background-color: var(--color-main-background); background-color: var(--color-main-background);
margin-bottom: $card-spacing; margin-bottom: $card-spacing;
&::v-deep * {
cursor: pointer;
}
body.dark &, body.theme--dark & { body.dark &, body.theme--dark & {
border: 2px solid var(--color-border); border: 2px solid var(--color-border);
} }