Skip to content

Commit

Permalink
Merge branch 'main' into adjust-initial-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yhattav committed Jan 14, 2025
2 parents 0609c4c + ff6ad71 commit f96ba86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/D3GravityVision/D3GravityVision.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export const D3GravityVision: React.FC<D3GravityVisionProps> = ({
};
}, [throttledSettingsUpdate, throttledWarpPointUpdate]);

if (!settings.SHOW_D3_GRAVITY_VISION) return null;
if (!settings.SHOW_D3_GRAVITY_VISION || warpPoints.length === 0) return null;

return (
<svg
Expand Down
1 change: 1 addition & 0 deletions src/components/ScenarioPanel/ScenarioPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const ScenarioPanel: React.FC<ScenarioPanelProps> = ({
exit={{ opacity: 0, y: 20 }}
transition={{ type: "spring", damping: 20, stiffness: 300 }}
onClick={(e) => e.stopPropagation()}
onMouseDown={(e) => e.stopPropagation()}
className="floating-panel scenario-panel vertical-panel"
style={{ color: "rgba(255, 255, 255, 0.9)" }}
>
Expand Down
1 change: 1 addition & 0 deletions src/components/SimulatorSettings/SimulatorSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ export const SimulatorSettings: React.FC<SimulatorSettingsProps> = ({
exit={{ opacity: 0, y: 20 }}
transition={{ type: "spring", damping: 20, stiffness: 300 }}
onClick={(e) => e.stopPropagation()}
onMouseDown={(e) => e.stopPropagation()}
className="floating-panel settings-panel"
style={{
position: "absolute",
Expand Down

0 comments on commit f96ba86

Please sign in to comment.