Skip to content

Commit 2f16b57

Browse files
szaimennextcloud-command
authored andcommitted
always show the dismiss all button
Signed-off-by: szaimen <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent b3b038e commit 2f16b57

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

css/styles.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
.notification-wrapper {
4444
display: flex;
4545
flex-direction: column;
46+
margin-bottom: 44px;
47+
max-height: calc(100vh - 50px * 4 - 44px) !important;
4648
}
4749

4850
.emptycontent {
@@ -58,6 +60,10 @@
5860
color: var(--color-text-maxcontrast);
5961
border-top: 1px solid var(--color-border);
6062
padding: 10px;
63+
width: calc(100% - 10px * 2);
64+
position: absolute;
65+
bottom: 0px;
66+
background-color: var(--color-main-background);
6167

6268
&:hover,
6369
.icon-close {

js/notifications-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/notifications-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
:object-type="n.object_type"
3131
@remove="onRemove" />
3232
</transition-group>
33-
<li v-if="notifications.length > 2">
33+
<li v-if="notifications.length > 0">
3434
<div class="dismiss-all" @click="onDismissAll">
3535
<span class="icon icon-close svg" :title="t('notifications', 'Dismiss all notifications')" /> {{ t('notifications', 'Dismiss all notifications') }}
3636
</div>

0 commit comments

Comments
 (0)