akveo / akveo/ngx-admin

Differences in screen fit between running and deployed application

Abierto
#5,926 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
25.7k
Forks
7.9k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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](https://user-images.githubusercontent.com/6250232/159125877-55621078-74c5-4079-b8cd-5ff878f1176d.png)
![img2](https://user-images.githubusercontent.com/6250232/159125916-5b523074-eded-4cb2-80a2-4ee8deb8f9be.png)

**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**
```

```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.