akveo / ngx-admin

Customizable admin dashboard template based on Angular 10+
https://akveo.github.io/ngx-admin/
MIT License
25.28k stars 7.96k forks source link

Scaling: Zoom out (think about windowMode as default) #1809

Open Prefix1802 opened 6 years ago

Prefix1802 commented 6 years ago

When i use zoom out in firefox or chrome (shift + mouse scroll) ngx-admin does not adjust properly, for example 75%.

It's not scaling.

afbeelding

It seems to have to do with:

.nb-theme-corporate nb-layout.window-mode .layout nb-layout-header nav, .nb-theme-corporate nb-layout.window-mode .scrollable-container

max-width: 1920px;

When i disable it, page gets rendered correctly

Have a look at https://www.akveo.com/ng2-admin. That one is scaling properly. I wonder what happened?

nnixaa commented 6 years ago

Hey @Prefix1802, this one is a feature, not a bug, but considering we already had a couple of similar questions, probably this should not be the default. So you just need to remove the windowMode property form the <nb-layout and that's it.

Prefix1802 commented 6 years ago

I removed windowMode from ngx-admin-master\src\app\@theme\layouts\sample\sample.layout.ts and it is working as expected.

Thank you.