Skip to content

Commit e65f690

Browse files
authored
Merge pull request #2243 from nextcloud/bugfix/noid/styling
2 parents 69df66c + 346b989 commit e65f690

7 files changed

Lines changed: 35 additions & 11 deletions

File tree

src/components/Controls.vue

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,18 +170,22 @@
170170
</template>
171171
</Popover>
172172

173-
<Actions :style="archivedOpacity" :title="t('deck', 'Show archived cards')">
173+
<Actions :style="archivedOpacity">
174174
<ActionButton
175175
icon="icon-archive"
176-
@click="toggleShowArchived" />
177-
</Actions>
178-
<Actions :title="t('deck', 'Toggle compact mode')">
176+
@click="toggleShowArchived">
177+
{{ showArchived ? t('deck', 'Hide archived cards') : t('deck', 'Show archived cards') }}
178+
</ActionButton>
179179
<ActionButton v-if="compactMode"
180180
icon="icon-toggle-compact-collapsed"
181-
@click="toggleCompactMode" />
181+
@click="toggleCompactMode">
182+
{{ t('deck', 'Toggle compact mode') }}
183+
</ActionButton>
182184
<ActionButton v-else
183185
icon="icon-toggle-compact-expanded"
184-
@click="toggleCompactMode" />
186+
@click="toggleCompactMode">
187+
{{ t('deck', 'Toggle compact mode') }}
188+
</ActionButton>
185189
</Actions>
186190
<!-- FIXME: ActionRouter currently doesn't work as an inline action -->
187191
<Actions :title="t('deck', 'Details')">

src/components/board/Stack.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ export default {
310310
margin-top: 0;
311311
margin-bottom: 10px;
312312
box-shadow: 0 0 3px var(--color-box-shadow);
313-
border-radius: 3px;
313+
border-radius: var(--border-radius-large);
314+
overflow: hidden;
314315
}
315316
316317
&.icon-loading-small:after,

src/components/card/CardSidebar.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
<AppSidebar v-if="currentBoard && currentCard && copiedCard"
2525
:title="currentCard.title"
2626
:subtitle="subtitle"
27+
:title-editable.sync="titleEditable"
28+
@update:title="updateTitle"
2729
@close="closeSidebar">
2830
<template #secondary-actions />
2931
<AppSidebarTab id="details"
@@ -253,6 +255,7 @@ export default {
253255
254256
saving: false,
255257
markdownIt: null,
258+
titleEditable: false,
256259
descriptionEditing: false,
257260
mdeConfig: {
258261
autoDownloadFontAwesome: false,
@@ -434,6 +437,12 @@ export default {
434437
delete this.copiedCard.descriptionLastEdit
435438
this.descriptionSaving = false
436439
},
440+
updateTitle(newTitle) {
441+
this.$set(this.copiedCard, 'title', newTitle)
442+
this.$store.dispatch('updateCardTitle', this.copiedCard).then(() => {
443+
this.titleEditable = false
444+
})
445+
},
437446
updateDescription() {
438447
this.copiedCard.descriptionLastEdit = Date.now()
439448
clearTimeout(this.descriptionSaveTimeout)

src/components/cards/CardBadges.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ export default {
121121
}
122122
}
123123
124+
.card:not(.card__editable) .avatars {
125+
margin-right: 10px;
126+
}
127+
124128
.fade-enter-active, .fade-leave-active {
125129
transition: opacity .125s;
126130
}

src/components/cards/CardItem.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<template>
2828
<AttachmentDragAndDrop v-if="card" :card-id="card.id" class="drop-upload--card">
29-
<div :class="{'compact': compactMode, 'current-card': currentCard, 'has-labels': card.labels && card.labels.length > 0, 'is-editing': editing}"
29+
<div :class="{'compact': compactMode, 'current-card': currentCard, 'has-labels': card.labels && card.labels.length > 0, 'is-editing': editing, 'card__editable': canEdit}"
3030
tag="div"
3131
class="card"
3232
@click="openCard">
@@ -43,7 +43,7 @@
4343
class="dragDisabled"
4444
@keyup.esc="cancelEdit"
4545
@submit.prevent="finishedEdit(card)">
46-
<input v-model="copiedCard.title" type="text" autofocus>
46+
<input v-model="copiedCard.title" v-focus type="text">
4747
<input type="button" class="icon-confirm" @click="finishedEdit(card)">
4848
</form>
4949

@@ -175,7 +175,7 @@ export default {
175175
min-height: 44px;
176176
form {
177177
display: flex;
178-
padding: 5px 7px;
178+
padding: 3px 5px;
179179
width: 100%;
180180
input[type=text] {
181181
flex-grow: 1;
@@ -188,10 +188,14 @@ export default {
188188
font-size: 100%;
189189
overflow-x: hidden;
190190
word-wrap: break-word;
191+
padding-left: 4px;
191192
span {
192193
cursor: text;
193194
}
194195
}
196+
input[type=text] {
197+
font-size: 100%;
198+
}
195199
}
196200
197201
@import './../../css/labels';

src/components/navigation/AppNavigation.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
<template #list>
2626
<AppNavigationItem
2727
:title="t('deck', 'Upcoming cards')"
28-
icon="icon-desktop"
28+
icon="icon-calendar-dark"
29+
:exact="true"
2930
to="/" />
3031
<AppNavigationBoardCategory
3132
id="deck-navigation-all"

src/components/navigation/AppNavigationBoardCategory.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
:title="text"
2525
:icon="icon"
2626
:to="to"
27+
:exact="true"
2728
:allow-collapse="collapsible"
2829
:open="opened">
2930
<AppNavigationBoard v-for="board in boardsSorted" :key="board.id" :board="board" />

0 commit comments

Comments
 (0)