Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(NotificationsApp): Fix 'Dismiss all' on the bottom
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Feb 24, 2025
commit 76a745ff9a389f8a735f38bbbcbcf335b04e8271
26 changes: 14 additions & 12 deletions src/NotificationsApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
v-bind="n"
:index="index"
@remove="onRemove" />
<!-- Dismiss all -->
<li key="dismiss-button" class="dismiss-all">
<NcButton type="tertiary"
wide
@click="onDismissAll">
<template #icon>
<IconClose :size="20" />
</template>
{{ t('notifications', 'Dismiss all notifications') }}
</NcButton>
</li>
</transition-group>

<!-- No notifications -->
Expand All @@ -69,6 +58,18 @@
</template>
</NcEmptyContent>
</transition>

<!-- Dismiss all -->
<div v-if="notifications.length > 0" class="dismiss-all">
<NcButton type="tertiary"
wide
@click="onDismissAll">
<template #icon>
<IconClose :size="20" />
</template>
{{ t('notifications', 'Dismiss all notifications') }}
</NcButton>
</div>
</div>
</NcHeaderMenu>
</template>
Expand Down Expand Up @@ -485,12 +486,13 @@ export default {
.notification-wrapper {
display: flex;
flex-direction: column;
max-height: calc(100vh - 50px * 4);
max-height: calc(100vh - 50px * 5);
overflow: auto;
}

.dismiss-all {
padding: calc(2 * var(--default-grid-baseline));
border-top: 1px solid var(--color-border);
}
}

Expand Down