Skip to content

Commit f93be51

Browse files
committed
Add a button to the modal to switch back to the sidebar view
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
1 parent 4685ecd commit f93be51

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

src/App.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ export default {
108108

109109
<style lang="scss" scoped>
110110
111+
.app-sidebar::v-deep {
112+
border-left: 0;
113+
width: 800px;
114+
max-width: 780px;
115+
top: 0px;
116+
}
117+
111118
#content {
112119
#app-content {
113120
transition: margin-left 100ms ease;

src/components/card/CardSidebar.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
:subtitle="subtitle"
2727
@close="closeSidebar">
2828
<template #secondary-actions>
29-
<ActionButton icon="icon-external" @click.stop="showModal()">
29+
<ActionButton v-if="cardDetailsInModal" icon="icon-menu-sidebar" @click.stop="showModal()">
30+
{{ t('deck', 'Open in sidebar view') }}
31+
</ActionButton>
32+
33+
<ActionButton v-else icon="icon-external" @click.stop="showModal()">
3034
{{ t('deck', 'Open in bigger view') }}
3135
</ActionButton>
3236
</template>
@@ -139,6 +143,7 @@ export default {
139143
computed: {
140144
...mapState({
141145
currentBoard: state => state.currentBoard,
146+
cardDetailsInModal: state => state.cardDetailsInModal,
142147
}),
143148
...mapGetters(['canEdit', 'assignables']),
144149
attachments() {

0 commit comments

Comments
 (0)