[maps][xs] - fixing height

This commit is contained in:
Luccas Mateus de Medeiros Gomes 2023-07-06 09:27:05 -03:00
parent 6e8d5cb091
commit 7a0de61bbb
4 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,5 @@
const nextConfig = {
swcMinify: false
}
module.exports = nextConfig

View File

@ -37,7 +37,6 @@
"react-hook-form": "^7.43.9",
"react-query": "^3.39.3",
"react-vega": "^7.6.0",
"rollup-plugin-re": "^1.0.7",
"vega": "5.25.0",
"vega-lite": "5.1.0",
"vitest": "^0.31.4"

View File

@ -40,7 +40,7 @@ const Map = ({ children, zoom, center, setSelected }) => {
}, [map]);
return (
<MapContext.Provider value={{ map }}>
<div ref={mapRef} className="w-full h-[500px]">
<div ref={mapRef} className="w-full" style={{height: '500px'}}>
{children}
</div>
</MapContext.Provider>

View File

@ -38,6 +38,7 @@ const app = async (): Promise<UserConfigExport> => {
'react-vega',
'ol',
'ol/dom.js',
'ol/reproj.js',
],
output: {
manualChunks: undefined,
@ -46,6 +47,7 @@ const app = async (): Promise<UserConfigExport> => {
ol: 'ol',
'ol-mapbox-style': 'ol-mapbox-style',
'ol/dom.js': 'ol/dom.js',
'ol/reproj.js': 'ol/reproj.js',
'react-vega': 'react-vega',
'react-dom': 'ReactDOM',
tailwindcss: 'tailwindcss',