added new status notification in TL

This commit is contained in:
Nicolas Constant 2020-02-14 22:26:40 -05:00
parent 3486b8eb14
commit 3abaa916b8
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
3 changed files with 23 additions and 3 deletions

View File

@ -5,7 +5,10 @@
</a>
</div>
<div class="stream-toots__content flexcroll" #statusstream (scroll)="onScroll()" tabindex="0">
<div class="stream-toots__new-notification"
[class.stream-toots__new-notification--display]="bufferStream && bufferStream.length > 0"></div>
<div class="stream-toots__content flexcroll" #statusstream (scroll)="onScroll()" tabindex="0">
<div *ngIf="displayError" class="stream-toots__error">{{displayError}}</div>
<!-- data-simplebar -->

View File

@ -5,7 +5,7 @@
height: calc(100%);
width: calc(100%);
// overflow: auto;
overflow: auto;
position: relative;
&__error {
@ -22,6 +22,23 @@
}
}
&__new-notification {
z-index: 100;
width: $stream-column-width;
height: 25px;
position: absolute;
top: -16px;
background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
transition: all .5s;
opacity: 0;
&--display {
opacity: 1;
}
}
&__status:not(:last-child) {
border: solid #06070b;
border-width: 0 0 1px 0;

View File

@ -28,7 +28,7 @@ export class StreamStatusesComponent implements OnInit, OnDestroy {
private websocketStreaming: StreamingWrapper;
statuses: StatusWrapper[] = [];
private bufferStream: Status[] = [];
bufferStream: Status[] = [];
private bufferWasCleared: boolean;
private hideBoosts: boolean;