Skip to content

Commit

Permalink
chore: small fixes (#5673)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored Oct 19, 2023
1 parent b727901 commit 107cd4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions projects/core/components/dialog/dialog.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
.t-wrapper {
position: sticky;
top: 0;
z-index: 1;
order: -1;
}

Expand Down
1 change: 1 addition & 0 deletions projects/core/components/root/root.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
html,
.tui-zero-scrollbar {
.scrollbar-hidden();
overflow: auto;
}

body {
Expand Down
4 changes: 2 additions & 2 deletions projects/experimental/directives/fade/fade.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export class TuiFadeDirective {

private isEnd(el: HTMLElement): boolean {
return (
el.scrollLeft < el.scrollWidth - el.clientWidth ||
el.scrollTop < el.scrollHeight - el.clientHeight ||
Math.round(el.scrollLeft) < el.scrollWidth - el.clientWidth ||
Math.round(el.scrollTop) < el.scrollHeight - el.clientHeight ||
(this.orientation === 'horizontal' && el.scrollHeight > el.clientHeight)
);
}
Expand Down

0 comments on commit 107cd4b

Please sign in to comment.