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

Commit 126b7fd

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

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/App.scss

Lines changed: 4 additions & 4 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 {
@@ -1756,10 +1757,6 @@ h6 {
17561757
padding: 0.5rem;
17571758
user-select: none;
17581759

1759-
&:hover {
1760-
background: $pink-hover;
1761-
}
1762-
17631760
div {
17641761
font-size: 13px;
17651762
font-weight: 500;
@@ -1910,6 +1907,7 @@ abbr {
19101907
height: 2.5rem;
19111908
justify-content: center;
19121909
margin-right: 0.25rem;
1910+
user-select: none;
19131911
width: 2.5rem;
19141912

19151913
svg {
@@ -2501,6 +2499,7 @@ abbr {
25012499
cursor: pointer;
25022500
position: absolute;
25032501
right: 0;
2502+
user-select: none;
25042503
z-index: 999;
25052504

25062505
svg {
@@ -2838,6 +2837,7 @@ abbr {
28382837
height: 2.5rem;
28392838
justify-content: center;
28402839
margin-left: 0.25rem;
2840+
user-select: none;
28412841
width: 2.5rem;
28422842

28432843
&.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)