Skip to content

Commit

Permalink
Merge pull request #1065 from nextcloud/backport/1060/stable22
Browse files Browse the repository at this point in the history
[stable22] always show the dismiss all button
  • Loading branch information
nickvergessen authored Aug 23, 2021
2 parents 34ae265 + 8bacfd9 commit 36b1ec7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
.notification-wrapper {
display: flex;
flex-direction: column;
margin-bottom: 44px;
max-height: calc(100vh - 50px * 4 - 44px) !important;
}

.emptycontent {
Expand All @@ -58,6 +60,10 @@
color: var(--color-text-maxcontrast);
border-top: 1px solid var(--color-border);
padding: 10px;
width: calc(100% - 10px * 2);
position: absolute;
bottom: 0px;
background-color: var(--color-main-background);

&:hover,
.icon-close {
Expand Down
4 changes: 2 additions & 2 deletions js/notifications-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/notifications-main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
:object-type="n.object_type"
@remove="onRemove" />
</transition-group>
<li v-if="notifications.length > 2">
<li v-if="notifications.length > 0">
<div class="dismiss-all" @click="onDismissAll">
<span class="icon icon-close svg" :title="t('notifications', 'Dismiss all notifications')" /> {{ t('notifications', 'Dismiss all notifications') }}
</div>
Expand Down

0 comments on commit 36b1ec7

Please sign in to comment.