Преглед изворни кода

Fixing a fun exploit by hiding the element within the panorama and map

Kirk Trombley пре 5 година
родитељ
комит
e6e58e37f4

+ 5 - 0
client/src/components/screens/GamePanel/GamePanel.module.css

@@ -7,6 +7,11 @@
   align-items: center;
 }
 
+.page a[title="Open this area in Google Maps (opens a new window)"] {
+  display: none !important;
+  /* This prevents Google's links from showing, which would let you cheat and see where you are in Street View */
+}
+
 .streetview {
   height: 100%;
   width: 100%;

+ 2 - 2
client/src/components/screens/GamePanel/GuessPane/GuessPane.jsx

@@ -47,10 +47,10 @@ export default () => {
       <ClickMarkerMap onMarkerMoved={setSelectedPoint} />
       <RoundTimer onTimeout={handleSubmitGuess} />
       <div className={styles.resize} onClick={() => setMapSize(toggleMapSize('big'))}>
-        { mapSize === 'big' ? '↙️' : '↗️' }
+        { mapSize === 'small' ? '↗️' : '↙️' }
       </div>
       <div className={`${styles.resize} ${styles['resize--medium']}`} onClick={() => setMapSize(toggleMapSize('medium'))}>
-        { mapSize === 'medium' ? '⬅️' : '➡️' }
+        { mapSize === 'small' ? '➡️' : '⬅️' }
       </div>
     </div>
   );