Skip to content

Commit

Permalink
Merge pull request #268 from NicolasConstant/develop
Browse files Browse the repository at this point in the history
0.27.1 PR
  • Loading branch information
NicolasConstant authored Apr 29, 2020
2 parents 9eb6fc6 + a6a8f4b commit ed81e4b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion src/app/components/stream/stream.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
// position: absolute;
position: relative;
top: 9px;
margin: 0;
// left: 35px;

&--only {
Expand All @@ -90,7 +91,7 @@
font-style: italic;
// position: absolute;
position: relative;
top: -2px;
top: 6px;
// top: 21px;
// top: 10px;
// left: 35px;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ed81e4b

Please sign in to comment.