ngx-admin
ngx-admin copied to clipboard
Mobile screen issue with prod build
After taking a clone of the master branch and running npm build --prod
run the dist folder with http-server dist
the UI on the mobile screen gets distorted as unwanted scrolling occurs vertically and horizontally here are the login page and dashboard page.
I also facing this issue. Please help with the solution.
same here, please help
me too, please help
Darn. Anyone got any ideas?
Any solution?
Looks like optimization: true breaks mobile view. I don't know why.
Good news. You can add the following workaround to your style.scss (at the bottom) to fix it:
min-width: initial!important;
I believe bootstrap is overriding this somewhere. Maybe dev can find another way to fix it.
Good news. You can add the following workaround to your style.scss (at the bottom) to fix it:
min-width: initial!important;
I believe bootstrap is overriding this somewhere. Maybe dev can find another way to fix it.
@christomorrow Hi thx for your trick, in which class do i need to put this Line in the style.scss ?
@lorenzochaudessolle it needs to go in body, at the bottom of your style.scss
or inside @mixin nb-overrides()
in your _override.scss
you need to add the following :
body {
min-width: initial!important;
}
hope this resolves your issue
https://github.com/akveo/ngx-admin/issues/5926 I need help, too
Hi folks
I note that changing this property in DevTools, that works accordingly.
But I don't know how to fix it. Any suggestion?
@lorenzochaudessolle it needs to go in body, at the bottom of your
style.scss
or inside@mixin nb-overrides()
in your_override.scss
you need to add the following :body { min-width: initial!important; }
hope this resolves your issue
Hi, in my case I tried to put the body min-width on both styles.scss and _overrides.scss but did not work. Anyway your comment pointed me to a dirty and simple solution: I changed the index.html file forcing the style on the body tag:
<body style="min-width: initial !important;">
Thank you!