Merge pull request #2243 from nextcloud/bugfix/noid/styling
This commit is contained in:
@@ -170,18 +170,22 @@
|
|||||||
</template>
|
</template>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
|
||||||
<Actions :style="archivedOpacity" :title="t('deck', 'Show archived cards')">
|
<Actions :style="archivedOpacity">
|
||||||
<ActionButton
|
<ActionButton
|
||||||
icon="icon-archive"
|
icon="icon-archive"
|
||||||
@click="toggleShowArchived" />
|
@click="toggleShowArchived">
|
||||||
</Actions>
|
{{ showArchived ? t('deck', 'Hide archived cards') : t('deck', 'Show archived cards') }}
|
||||||
<Actions :title="t('deck', 'Toggle compact mode')">
|
</ActionButton>
|
||||||
<ActionButton v-if="compactMode"
|
<ActionButton v-if="compactMode"
|
||||||
icon="icon-toggle-compact-collapsed"
|
icon="icon-toggle-compact-collapsed"
|
||||||
@click="toggleCompactMode" />
|
@click="toggleCompactMode">
|
||||||
|
{{ t('deck', 'Toggle compact mode') }}
|
||||||
|
</ActionButton>
|
||||||
<ActionButton v-else
|
<ActionButton v-else
|
||||||
icon="icon-toggle-compact-expanded"
|
icon="icon-toggle-compact-expanded"
|
||||||
@click="toggleCompactMode" />
|
@click="toggleCompactMode">
|
||||||
|
{{ t('deck', 'Toggle compact mode') }}
|
||||||
|
</ActionButton>
|
||||||
</Actions>
|
</Actions>
|
||||||
<!-- FIXME: ActionRouter currently doesn't work as an inline action -->
|
<!-- FIXME: ActionRouter currently doesn't work as an inline action -->
|
||||||
<Actions :title="t('deck', 'Details')">
|
<Actions :title="t('deck', 'Details')">
|
||||||
|
|||||||
@@ -310,7 +310,8 @@ export default {
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
box-shadow: 0 0 3px var(--color-box-shadow);
|
box-shadow: 0 0 3px var(--color-box-shadow);
|
||||||
border-radius: 3px;
|
border-radius: var(--border-radius-large);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.icon-loading-small:after,
|
&.icon-loading-small:after,
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
<AppSidebar v-if="currentBoard && currentCard && copiedCard"
|
<AppSidebar v-if="currentBoard && currentCard && copiedCard"
|
||||||
:title="currentCard.title"
|
:title="currentCard.title"
|
||||||
:subtitle="subtitle"
|
:subtitle="subtitle"
|
||||||
|
:title-editable.sync="titleEditable"
|
||||||
|
@update:title="updateTitle"
|
||||||
@close="closeSidebar">
|
@close="closeSidebar">
|
||||||
<template #secondary-actions />
|
<template #secondary-actions />
|
||||||
<AppSidebarTab id="details"
|
<AppSidebarTab id="details"
|
||||||
@@ -253,6 +255,7 @@ export default {
|
|||||||
|
|
||||||
saving: false,
|
saving: false,
|
||||||
markdownIt: null,
|
markdownIt: null,
|
||||||
|
titleEditable: false,
|
||||||
descriptionEditing: false,
|
descriptionEditing: false,
|
||||||
mdeConfig: {
|
mdeConfig: {
|
||||||
autoDownloadFontAwesome: false,
|
autoDownloadFontAwesome: false,
|
||||||
@@ -434,6 +437,12 @@ export default {
|
|||||||
delete this.copiedCard.descriptionLastEdit
|
delete this.copiedCard.descriptionLastEdit
|
||||||
this.descriptionSaving = false
|
this.descriptionSaving = false
|
||||||
},
|
},
|
||||||
|
updateTitle(newTitle) {
|
||||||
|
this.$set(this.copiedCard, 'title', newTitle)
|
||||||
|
this.$store.dispatch('updateCardTitle', this.copiedCard).then(() => {
|
||||||
|
this.titleEditable = false
|
||||||
|
})
|
||||||
|
},
|
||||||
updateDescription() {
|
updateDescription() {
|
||||||
this.copiedCard.descriptionLastEdit = Date.now()
|
this.copiedCard.descriptionLastEdit = Date.now()
|
||||||
clearTimeout(this.descriptionSaveTimeout)
|
clearTimeout(this.descriptionSaveTimeout)
|
||||||
|
|||||||
@@ -121,6 +121,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card:not(.card__editable) .avatars {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.fade-enter-active, .fade-leave-active {
|
.fade-enter-active, .fade-leave-active {
|
||||||
transition: opacity .125s;
|
transition: opacity .125s;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<AttachmentDragAndDrop v-if="card" :card-id="card.id" class="drop-upload--card">
|
<AttachmentDragAndDrop v-if="card" :card-id="card.id" class="drop-upload--card">
|
||||||
<div :class="{'compact': compactMode, 'current-card': currentCard, 'has-labels': card.labels && card.labels.length > 0, 'is-editing': editing}"
|
<div :class="{'compact': compactMode, 'current-card': currentCard, 'has-labels': card.labels && card.labels.length > 0, 'is-editing': editing, 'card__editable': canEdit}"
|
||||||
tag="div"
|
tag="div"
|
||||||
class="card"
|
class="card"
|
||||||
@click="openCard">
|
@click="openCard">
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
class="dragDisabled"
|
class="dragDisabled"
|
||||||
@keyup.esc="cancelEdit"
|
@keyup.esc="cancelEdit"
|
||||||
@submit.prevent="finishedEdit(card)">
|
@submit.prevent="finishedEdit(card)">
|
||||||
<input v-model="copiedCard.title" type="text" autofocus>
|
<input v-model="copiedCard.title" v-focus type="text">
|
||||||
<input type="button" class="icon-confirm" @click="finishedEdit(card)">
|
<input type="button" class="icon-confirm" @click="finishedEdit(card)">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@@ -175,7 +175,7 @@ export default {
|
|||||||
min-height: 44px;
|
min-height: 44px;
|
||||||
form {
|
form {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 5px 7px;
|
padding: 3px 5px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
input[type=text] {
|
input[type=text] {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
@@ -188,10 +188,14 @@ export default {
|
|||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
padding-left: 4px;
|
||||||
span {
|
span {
|
||||||
cursor: text;
|
cursor: text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
input[type=text] {
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@import './../../css/labels';
|
@import './../../css/labels';
|
||||||
|
|||||||
@@ -25,7 +25,8 @@
|
|||||||
<template #list>
|
<template #list>
|
||||||
<AppNavigationItem
|
<AppNavigationItem
|
||||||
:title="t('deck', 'Upcoming cards')"
|
:title="t('deck', 'Upcoming cards')"
|
||||||
icon="icon-desktop"
|
icon="icon-calendar-dark"
|
||||||
|
:exact="true"
|
||||||
to="/" />
|
to="/" />
|
||||||
<AppNavigationBoardCategory
|
<AppNavigationBoardCategory
|
||||||
id="deck-navigation-all"
|
id="deck-navigation-all"
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
:title="text"
|
:title="text"
|
||||||
:icon="icon"
|
:icon="icon"
|
||||||
:to="to"
|
:to="to"
|
||||||
|
:exact="true"
|
||||||
:allow-collapse="collapsible"
|
:allow-collapse="collapsible"
|
||||||
:open="opened">
|
:open="opened">
|
||||||
<AppNavigationBoard v-for="board in boardsSorted" :key="board.id" :board="board" />
|
<AppNavigationBoard v-for="board in boardsSorted" :key="board.id" :board="board" />
|
||||||
|
|||||||
Reference in New Issue
Block a user