ngx-admin icon indicating copy to clipboard operation
ngx-admin copied to clipboard

Differences in screen fit between running and deployed application

Open danielmachado1980 opened this issue 2 years ago • 1 comments

Issue type

I'm submitting a ... (check one with "x")

  • [x] bug report
  • [ ] feature request
  • [ ] question about the decisions made in the repository

Issue description

Current behavior:

Running application with ng serve --o, the screen behaves responsive way. Otherwise, in deploy way with Express after build prod, the screen behaves differently. img1 img2

Expected behavior:

The behavior needs be the same. Steps to reproduce:

Run application with ng serve --o and after that deploy it into server, in my case, Express, with build prod. We have two different result with the help of DevTools. Related code:

insert short code snippets here
```server.js Content
const express = require('express');
const app = express();

const port = process.env.PORT || 8080;

app.use(express.static(__dirname + '/dist'));

app.get('/*', (req, res) => {
    res.sendFile(__dirname + '/dist/index.html');
});

app.listen(port, () => {
    console.log('Servidor iniciado na porta ' + port);
})

### Other information:
Node v12.18.1, npm v6.14.5
OS: Windows (10).
Browser: Chrome


**Angular, Nebular**

danielmachado1980 avatar Mar 19 '22 15:03 danielmachado1980

See https://github.com/akveo/ngx-admin/issues/5906

danielmachado1980 avatar Mar 23 '22 17:03 danielmachado1980