1.0.4
parent
246ae12287
commit
e720d656da
|
|
@ -18,8 +18,9 @@ export function ProbeList({ probes, planets, onBodySelect, selectedBody, onReset
|
||||||
// Auto-expand the group when a body is selected from the 3D scene
|
// Auto-expand the group when a body is selected from the 3D scene
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (selectedBody) {
|
if (selectedBody) {
|
||||||
// Auto-collapse panel for focus mode
|
// Don't auto-collapse panel if it's already open
|
||||||
setIsCollapsed(true);
|
// Only auto-collapse if panel was already collapsed
|
||||||
|
// This allows users to keep the panel open while browsing bodies
|
||||||
|
|
||||||
// Auto-expand the group that contains the selected body
|
// Auto-expand the group that contains the selected body
|
||||||
setExpandedGroup(selectedBody.type);
|
setExpandedGroup(selectedBody.type);
|
||||||
|
|
@ -116,8 +117,8 @@ export function ProbeList({ probes, planets, onBodySelect, selectedBody, onReset
|
||||||
</h2>
|
</h2>
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
onBodySelect(null);
|
|
||||||
onResetCamera();
|
onResetCamera();
|
||||||
|
onBodySelect(null);
|
||||||
}}
|
}}
|
||||||
className="text-[10px] bg-white/5 hover:bg-white/10 px-2 py-1 rounded text-gray-400 hover:text-white transition-colors border border-white/5"
|
className="text-[10px] bg-white/5 hover:bg-white/10 px-2 py-1 rounded text-gray-400 hover:text-white transition-colors border border-white/5"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue