Skip to content

Commit 812a6c2

Browse files
committed
[event-viewer] [ui]: adds scroll to top functionality
1 parent c9d2054 commit 812a6c2

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [0.1.3] Pending
88

99
### Added
10+
- **[event-viewer] [ui]:**: scroll to top functionality
1011

1112
### Changed
1213
- **[AppLogger]:**: introduce debug instance
1314

1415
### Fixed
1516
- **[log-selection]:** event-logs command parsing when thousands separator is '.' instead of ','
1617
- **[event-viewer]:**: fixes getEvents command to work on all windows languages
18+
- **[event-viewer] [ui]:**: optimize vertical scroll
1719

1820

1921

src/app/components/event-viewer/event-viewer.component.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@
1010
margin-top: 12px;
1111
height: 32px;
1212
line-height: 32px;
13+
}
14+
15+
:host ::ng-deep .ant-back-top {
16+
bottom: 10px;
17+
right: 20px;
1318
}

src/app/components/event-viewer/event-viewer.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="container" style="height: 100%; overflow-y: auto;">
1+
<div #scrollTarget class="container" style="height: 100%; overflow-y: auto;">
22

33
<!-- Title -->
44
<div class="title event-viewer-title">
@@ -49,4 +49,8 @@
4949
<span>No Events</span>
5050
</ng-template>
5151
</nz-empty>
52+
53+
54+
<!-- Botom-Right ScrollTop functionality -->
55+
<nz-back-top [nzTarget]="scrollTarget"></nz-back-top>
5256
</div>

0 commit comments

Comments
 (0)