mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-08 03:18:36 +03:00
Clean up mobile changes, fixes #5
This commit is contained in:
@@ -41,14 +41,12 @@ class Dashboard extends React.Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
// if (!this.props.app.isMobile) {
|
||||
this.props.actions.fetchDomain().then((domain) =>
|
||||
this.props.actions.updateDomain({
|
||||
domain,
|
||||
features: this.props.features,
|
||||
})
|
||||
);
|
||||
// }
|
||||
// NOTE: hack to get the timeline to always show. Not entirely sure why
|
||||
// this is necessary.
|
||||
window.dispatchEvent(new Event("resize"));
|
||||
|
||||
@@ -10,14 +10,13 @@ const Popup = ({
|
||||
onClose,
|
||||
title,
|
||||
theme = "light",
|
||||
isMobile = false,
|
||||
children,
|
||||
}) => (
|
||||
<div>
|
||||
<div
|
||||
className={`infopopup ${isOpen ? "" : "hidden"} ${
|
||||
theme === "dark" ? "dark" : "light"
|
||||
} ${isMobile ? "mobile" : ""}`}
|
||||
}`}
|
||||
style={{ ...styles, fontSize }}
|
||||
>
|
||||
<div className="legend-header">
|
||||
|
||||
@@ -66,7 +66,6 @@ const initial = {
|
||||
},
|
||||
},
|
||||
shapes: [],
|
||||
isMobile: /Mobi/.test(navigator.userAgent),
|
||||
language: "en-US",
|
||||
cluster: {
|
||||
radius: 30,
|
||||
|
||||
Reference in New Issue
Block a user