Skip to content

Commit b49e99c

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 34ddf9e commit b49e99c

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

css/styles.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
.notification-wrapper {
3939
display: flex;
4040
flex-direction: column;
41+
margin-bottom: 44px;
42+
max-height: calc(100vh - 50px * 4 - 44px) !important;
4143
}
4244

4345
.emptycontent {
@@ -53,6 +55,10 @@
5355
color: var(--color-text-maxcontrast);
5456
border-top: 1px solid var(--color-border);
5557
padding: 10px;
58+
width: calc(100% - 10px * 2);
59+
position: absolute;
60+
bottom: 0px;
61+
background-color: var(--color-main-background);
5662

5763
&:hover,
5864
.icon-close {

js/notifications-main.js

Lines changed: 3 additions & 3 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)