Skip to content

Commit

Permalink
fix(gd): Scrollbar behavior on main screen (#29724)
Browse files Browse the repository at this point in the history
### Proposed Changes
* Changed scrollbar behavior on sidenav



https://github.com/user-attachments/assets/db5a9677-683a-4b3f-91ad-be8c99069d75

Co-authored-by: Kevin Davila <[email protected]>
  • Loading branch information
KevinDavilaDotCMS and kevindaviladev authored Aug 23, 2024
1 parent 290aa6d commit dca7797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ describe('DotNavigationComponent', () => {
});

it('should have scroll', () => {
expect(fixture.debugElement.styles.cssText).toEqual('overflow-y: scroll;');
expect(fixture.debugElement.styles.cssText).toEqual('overflow-y: auto;');
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class DotNavigationComponent implements OnInit {
menu$: Observable<DotMenu[]>;

@HostBinding('style.overflow-y') get overFlow() {
return this.dotNavigationService.collapsed$.getValue() ? '' : 'scroll';
return this.dotNavigationService.collapsed$.getValue() ? '' : 'auto';
}

constructor(
Expand Down

0 comments on commit dca7797

Please sign in to comment.