Skip to content

Commit 01fb809

Browse files
committed
Change github-repo name.
Fix anchor-scrolling bug. Fix code-blocks-overlay bug. Add ref-link for max-port-number in is-port post. Scroll to top after navigate to a nother route.
1 parent 81df80a commit 01fb809

8 files changed

Lines changed: 10 additions & 16 deletions

File tree

src/app/root/root-routing.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ const routes: Routes = [
5050
// Automatic scrolling
5151
anchorScrolling: "enabled",
5252
// Use this value to scroll to the html element with a suitable view
53-
scrollOffset: [0, 60]
53+
scrollOffset: [0, 60],
54+
scrollPositionRestoration: "top"
5455
}
5556
)
5657
],

src/app/version1.0.0/components/validation/is-port-func/is-port-func.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<ng-container class="article">
55
<p>
66
An <code>extension</code> validation <code>method</code> checks if the property's value is a valid port
7-
number, note: the maximum port number is 65535.
7+
number, note: the maximum port number is
8+
<a href="https://stackoverflow.com/a/113228/3858705" target="blank">65535</a>.
89
</p>
910
<div>
1011
<h2 class="section-heading">

src/environments/environment.prod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const environment = {
22
production: true,
3-
gitHubRepo: "https://github.com/DotNetValidator/Lib",
4-
gitHubApi: "https://api.github.com/repos/DotNetValidator/Lib",
3+
gitHubRepo: "https://github.com/DotNetValidator/DotNetValidator",
4+
gitHubApi: "https://api.github.com/repos/DotNetValidator/DotNetValidator",
55
nugetPackage: "https://www.nuget.org/packages/DotNetValidator/",
66
nugetApi: "https://api-v2v3search-0.nuget.org/query?q=packageid:dotnetvalidator",
77
stackOverflow: "https://stackoverflow.com/questions/tagged/DotNetValidator",

src/environments/environment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
export const environment = {
66
production: false,
7-
gitHubRepo: "https://github.com/DotNetValidator/Lib",
8-
gitHubApi: "https://api.github.com/repos/DotNetValidator/Lib",
7+
gitHubRepo: "https://github.com/DotNetValidator/DotNetValidator",
8+
gitHubApi: "https://api.github.com/repos/DotNetValidator/DotNetValidator",
99
nugetPackage: "https://www.nuget.org/packages/DotNetValidator/",
1010
nugetApi: "https://api-v2v3search-0.nuget.org/query?q=packageid:dotnetvalidator",
1111
stackOverflow: "https://stackoverflow.com/questions/tagged/DotNetValidator",

src/styles/components/_code.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
.code-block {
55
background-color: #f0f0f0;
6+
display: grid;
67
}
78

89
.hljs {

src/styles/components/_post-article.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,3 @@ app-post-article {
5959
}
6060
}
6161
}
62-
63-
@include screen-min-md {
64-
app-post-article {
65-
/* 100% of parent - side-nav-width - section-nav-width - 5rem for margins & paddings */
66-
width: calc(100vw - #{$side-nav-width} - #{$section-nav-width} - 5rem);
67-
max-width: calc(100vw - #{$side-nav-width} - #{$section-nav-width} - 5rem);
68-
}
69-
}

src/styles/components/_section-nav.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ app-post-section-navigator {
22
position: sticky;
33
top: calc(#{$top-navbar-height} + #{$main-content-top-spacing});
44
right: 0;
5-
left: calc(100% - #{$section-nav-width});
5+
left: auto;
66
max-height: calc(100vh - 3rem);
77
max-width: $section-nav-width;
88
min-width: $section-nav-width;

src/styles/layout/_side-nav.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.side-nav {
22
position: sticky;
33
top: $top-navbar-height;
4-
display: block;
54
max-height: calc(100vh - #{$top-navbar-height});
65
min-height: calc(100vh - #{$top-navbar-height});
76
max-width: $side-nav-width;

0 commit comments

Comments
 (0)