Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
rrchai committed Oct 23, 2023
1 parent c7549b5 commit 1b96644
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions apps/openchallenges/app/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ApplicationConfig, APP_INITIALIZER, APP_ID } from '@angular/core';
import {
provideRouter,
withDebugTracing,
withEnabledBlockingInitialNavigation,
withInMemoryScrolling,
withRouterConfig,
Expand Down Expand Up @@ -56,8 +55,7 @@ export const appConfig: ApplicationConfig = {
}),
withRouterConfig({
onSameUrlNavigation: 'ignore',
}),
withDebugTracing()
})
),
],
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<main sageCustomScrollRestore class="base mat-typography">
<ng-container *ngIf="challenge$ | async as challenge">
<section id="profile-top" class="row">
<openchallenges-avatar class="profile-pic" [avatar]="challengeAvatar"/>
<openchallenges-avatar class="profile-pic" [avatar]="challengeAvatar" />
<div id="profile-details" class="col">
<h2>
{{ challenge.name }}
Expand All @@ -20,7 +20,7 @@ <h2>
<section id="profile-stats" class="row">
<div class="col fill-empty"></div>
<div class="col">
<openchallenges-challenge-stats [loggedIn]="loggedIn"/>
<openchallenges-challenge-stats [loggedIn]="loggedIn" />
</div>
</section>
<section id="profile-bottom" class="content">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class CustomScrollRestoreDirective implements OnInit, AfterViewInit {
// same page navigation
this.viewportScroller.scrollToPosition([this.scrollX, this.scrollY]);
} else {
// forward navigation
// forward navigation - restore scroll position to top
this.viewportScroller.scrollToPosition([0, 0]);
}
});
Expand Down

0 comments on commit 1b96644

Please sign in to comment.