Skip to content
This repository was archived by the owner on Nov 2, 2021. It is now read-only.

Commit fe9baa6

Browse files
committed
Fix: Render map/table on Firefox mobile
1 parent 3d53233 commit fe9baa6

File tree

6 files changed

+699
-744
lines changed

6 files changed

+699
-744
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"corejs-typeahead": "^1.3.1",
1313
"d3-array": "^3.0.1",
1414
"d3-axis": "^3.0.0",
15-
"d3-brush": "^2.1.0",
15+
"d3-brush": "^3.0.0",
1616
"d3-fetch": "^3.0.1",
1717
"d3-format": "^3.0.0",
1818
"d3-geo": "^3.0.1",
@@ -22,7 +22,7 @@
2222
"d3-scale-chromatic": "^3.0.0",
2323
"d3-selection": "^3.0.0",
2424
"d3-shape": "^3.0.1",
25-
"d3-transition": "^3.0.0",
25+
"d3-transition": "^3.0.1",
2626
"date-fns": "^2.22.1",
2727
"date-fns-tz": "^1.1.4",
2828
"fast-deep-equal": "^3.1.3",

src/App.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,7 @@ h6 {
11871187
fill: #a6abb0;
11881188
stroke: #a6abb0;
11891189
stroke-width: 0.5;
1190+
user-select: none;
11901191
width: 16px;
11911192

11921193
&:hover {
@@ -1749,16 +1750,10 @@ h6 {
17491750
background: $pink-light;
17501751
border-radius: 5px;
17511752
color: $pink;
1752-
cursor: pointer;
17531753
display: flex;
17541754
flex-direction: row;
17551755
margin-bottom: 0.5rem;
17561756
padding: 0.5rem;
1757-
user-select: none;
1758-
1759-
&:hover {
1760-
background: $pink-hover;
1761-
}
17621757

17631758
div {
17641759
font-size: 13px;
@@ -1910,6 +1905,7 @@ abbr {
19101905
height: 2.5rem;
19111906
justify-content: center;
19121907
margin-right: 0.25rem;
1908+
user-select: none;
19131909
width: 2.5rem;
19141910

19151911
svg {
@@ -2501,6 +2497,7 @@ abbr {
25012497
cursor: pointer;
25022498
position: absolute;
25032499
right: 0;
2500+
user-select: none;
25042501
z-index: 999;
25052502

25062503
svg {
@@ -2838,6 +2835,7 @@ abbr {
28382835
height: 2.5rem;
28392836
justify-content: center;
28402837
margin-left: 0.25rem;
2838+
user-select: none;
28412839
width: 2.5rem;
28422840

28432841
&.back {

src/components/Home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function Home() {
174174
<div
175175
className={classnames('home-right', {expanded: expandTable})}
176176
ref={homeRightElement}
177-
style={{minHeight: '2rem'}}
177+
style={{minHeight: '4rem'}}
178178
>
179179
{(isVisible || location.hash) && (
180180
<>

src/components/MapExplorer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function MapExplorer({
301301
</Tooltip>
302302

303303
{mapMeta.mapType === MAP_TYPES.COUNTRY && (
304-
<Tooltip message={'Toggle districts/states'} hold>
304+
<Tooltip message={'Toggle between states/districts'} hold>
305305
<div
306306
className={classnames('toggle', 'boundary fadeInUp', {
307307
'is-highlighted': isDistrictView,

src/components/Table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function Table({
241241
<div className="Table">
242242
<div className="table-top">
243243
<div className="table-top-left">
244-
<Tooltip message={'Toggle districts/states'} hold>
244+
<Tooltip message={'Toggle between states/districts'} hold>
245245
<animated.div
246246
className={classnames('toggle', 'option-toggle', {
247247
'is-highlighted': showDistricts,

0 commit comments

Comments
 (0)