From a11bd24f9dd7188cb822edf2583f31a62cdc5e8c Mon Sep 17 00:00:00 2001 From: mracsys Date: Wed, 21 Apr 2021 12:47:24 -0400 Subject: [PATCH] fix area links for Firefox --- src/LinkedEntrance.js | 5 +---- src/Tracker.js | 7 +++++-- src/UnlinkedEntrance.js | 6 +----- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/LinkedEntrance.js b/src/LinkedEntrance.js index 1bc6040..a11b71b 100644 --- a/src/LinkedEntrance.js +++ b/src/LinkedEntrance.js @@ -61,7 +61,6 @@ class LinkedEntrance extends React.Component { let interiors = ['interior','specialInterior','grotto','grave','dungeon']; let oneWayTypes = ['spawn','warpsong','owldrop']; let otherEntrances = []; - const preventDefault = (event) => event.preventDefault(); if (this.props.connector === false) { if ((interiors.includes(this.props.allAreas.entrances[reverseLink].type) && (oneWayTypes.includes(oEntrance.type) || this.props.decoupled) && @@ -80,9 +79,7 @@ class LinkedEntrance extends React.Component {
{ this.props.forceVisible ? : null } - - {this.buildEntranceName(this.props.entrance)} - + {this.buildEntranceName(this.props.entrance)} ({ }, entranceAnchor: { textDecoration: 'none', + height: 0, + position: "relative", + top: -theme.spacing(10), "&:hover": { textDecoration: 'none', cursor: 'default', @@ -243,8 +246,8 @@ const useStyles = (theme) => ({ "&:before": { content: '""', display: "block", - height: theme.spacing(10), - marginTop: -theme.spacing(10) + //height: theme.spacing(10), + //marginTop: -theme.spacing(10), } }, entranceAnchorFakeText: { diff --git a/src/UnlinkedEntrance.js b/src/UnlinkedEntrance.js index b553f2c..d491f66 100644 --- a/src/UnlinkedEntrance.js +++ b/src/UnlinkedEntrance.js @@ -3,7 +3,6 @@ import Typography from '@material-ui/core/Typography'; import FormControl from '@material-ui/core/FormControl'; import Select from '@material-ui/core/Select'; import SubdirectoryArrowRightIcon from '@material-ui/icons/SubdirectoryArrowRight'; -import Link from '@material-ui/core/Link'; class UnLinkedEntrance extends React.Component { @@ -41,14 +40,11 @@ class UnLinkedEntrance extends React.Component { render() { let entrancePool = this.selectEntrancePool(this.props.entrance); let entranceList = this.props.allAreas.entrances; - const preventDefault = (event) => event.preventDefault(); return (
{ this.props.forceVisible ? : null } - - {this.buildEntranceName(this.props.entrance)} - + {this.buildEntranceName(this.props.entrance)}