port changes to notifications

This commit is contained in:
Henry Jameson 2022-09-28 21:34:53 +03:00
parent 7519c7f5d5
commit 66014fcfcb
3 changed files with 37 additions and 32 deletions

View file

@ -109,22 +109,3 @@ export default {
} }
} }
</script> </script>
<style lang="scss">
.NotificationFilters {
align-self: stretch;
> button {
line-height: 100%;
height: 100%;
width: var(--__panel-heading-height-inner);
text-align: center;
svg {
font-size: 1.2em;
}
}
}
</style>

View file

@ -29,6 +29,26 @@
} }
} }
} }
.timeline-header-button {
align-self: stretch;
text-align: center;
width: var(--__panel-heading-height);
height: var(--__panel-heading-height);
margin: calc(-1 * var(--panel-heading-height-padding));
> button {
box-sizing: border-box;
padding: calc(1 * var(--panel-heading-height-padding));
height: 100%;
width: 100%;
text-align: center;
svg {
font-size: 1.2em;
}
}
}
} }
.notification { .notification {

View file

@ -20,8 +20,11 @@
class="badge badge-notification unseen-count" class="badge badge-notification unseen-count"
>{{ unseenCount }}</span> >{{ unseenCount }}</span>
</div> </div>
<button <div
class="timeline-header-button"
v-if="showScrollTop" v-if="showScrollTop"
>
<button
class="button-unstyled scroll-to-top-button" class="button-unstyled scroll-to-top-button"
type="button" type="button"
@click="scrollToTop" @click="scrollToTop"
@ -34,6 +37,7 @@
/> />
</FALayers> </FALayers>
</button> </button>
</div>
<button <button
v-if="unseenCount" v-if="unseenCount"
class="button-default read-button" class="button-default read-button"
@ -42,7 +46,7 @@
> >
{{ $t('notifications.read') }} {{ $t('notifications.read') }}
</button> </button>
<NotificationFilters /> <NotificationFilters class="timeline-header-button" />
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div <div