Merge pull request #268 from NicolasConstant/develop

0.27.1 PR
This commit is contained in:
Nicolas Constant 2020-04-29 00:44:20 -04:00 committed by GitHub
commit ed81e4b18a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "sengi",
"version": "0.27.0",
"version": "0.27.1",
"license": "AGPL-3.0-or-later",
"main": "main-electron.js",
"description": "A multi-account desktop client for Mastodon and Pleroma",

View File

@ -261,7 +261,7 @@ export class StreamNotificationsComponent implements OnInit, OnDestroy {
} else {
element = this.notificationstream.nativeElement as HTMLElement;
}
element.focus();
element.focus({preventScroll:true});
}, 0);
return false;
}

View File

@ -306,7 +306,7 @@ export class StreamStatusesComponent implements OnInit, OnDestroy {
focus(): boolean {
setTimeout(() => {
var element = this.statustream.nativeElement as HTMLElement;
element.focus();
element.focus({preventScroll:true});
}, 0);
return false;
}

View File

@ -76,6 +76,7 @@
// position: absolute;
position: relative;
top: 9px;
margin: 0;
// left: 35px;
&--only {
@ -90,7 +91,7 @@
font-style: italic;
// position: absolute;
position: relative;
top: -2px;
top: 6px;
// top: 21px;
// top: 10px;
// left: 35px;;

View File

@ -37,9 +37,9 @@ export class StreamsMainDisplayComponent implements OnInit, OnDestroy {
if (columnIndex > -1) {
setTimeout(() => {
let element = this.streamsElementRef.toArray()[columnIndex].nativeElement;
element.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
//element.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
const scrolling = <Promise<any>><any>scrollIntoView(element, { behavior: 'smooth', block: 'nearest'});
const scrolling = <Promise<any>><any>scrollIntoView(element, { behavior: 'smooth', block: 'nearest', inline: 'start'});
scrolling
.then(() => {
this.streamComponents.toArray()[columnIndex].focus();