File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ export const GlobalStyles = createGlobalStyle`
192
192
}
193
193
194
194
.maplibregl-popup-content {
195
- width: 20rem ;
195
+ width: 13rem ;
196
196
}
197
197
198
198
.maplibregl-popup-tip {
Original file line number Diff line number Diff line change @@ -44,13 +44,12 @@ export const LineInfo = styled.div`
44
44
export const TotalArea = styled . h3 `
45
45
font-size: 0.75rem;
46
46
font-weight: normal;
47
+ max-width: 70%;
47
48
` ;
48
49
49
50
export const PercentArea = styled . h3 `
50
51
font-size: 1rem;
51
52
font-weight: bold;
52
- text-align: right;
53
- margin-left: auto;
54
53
` ;
55
54
56
55
export const Color = styled . div < { color : string ; $percent : number } > `
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ const MapPopup: React.FC<MapPopupProps> = ({
46
46
< InfoContent >
47
47
{ areas . map ( ( areaInfo : AreaInfo , index ) => (
48
48
< LineInfo key = { index } >
49
- < Color color = { areaInfo . color } $percent = { areaInfo . percent } />
50
- < TotalArea > ( { areaInfo . area } ) </ TotalArea >
51
- < PercentArea > { areaInfo . percent } % </ PercentArea >
49
+ < Color color = { areaInfo . color } $percent = { areaInfo . percent || 45 } />
50
+ { areaInfo . percent && < PercentArea > { areaInfo . percent } % </ PercentArea > }
51
+ < TotalArea > { areaInfo . area } </ TotalArea >
52
52
</ LineInfo >
53
53
) ) }
54
54
</ InfoContent >
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const sections: ISections = {
31
31
path : "/#about" ,
32
32
} ,
33
33
maps : {
34
- name : "Mapas & Visualizações " ,
34
+ name : "Plataforma do OCA " ,
35
35
path : "/#maps-visu" ,
36
36
} ,
37
37
publications : {
@@ -65,7 +65,7 @@ export const sections: ISections = {
65
65
} ,
66
66
} ,
67
67
} ,
68
- map : { name : "Mapa " , path : "/map" } ,
68
+ map : { name : "Plataforma " , path : "/map" } ,
69
69
contact : { name : "Fale conosco" , path : "/contact-us" } ,
70
70
} ;
71
71
You can’t perform that action at this time.
0 commit comments