fix: improve FocusInfo layout alignment and terminal modal text color
parent
fc81a4d8dc
commit
a91dc00b13
|
|
@ -65,6 +65,9 @@ export function FocusInfo({ body, onClose }: FocusInfoProps) {
|
||||||
.terminal-modal .ant-modal-close:hover {
|
.terminal-modal .ant-modal-close:hover {
|
||||||
background-color: rgba(35, 134, 54, 0.2) !important;
|
background-color: rgba(35, 134, 54, 0.2) !important;
|
||||||
}
|
}
|
||||||
|
.terminal-modal .ant-modal-body .animate-in {
|
||||||
|
color: #2ea043 !important; /* Ensure content text is green */
|
||||||
|
}
|
||||||
@keyframes spin-slow {
|
@keyframes spin-slow {
|
||||||
from { transform: rotate(0deg); }
|
from { transform: rotate(0deg); }
|
||||||
to { transform: rotate(360deg); }
|
to { transform: rotate(360deg); }
|
||||||
|
|
@ -113,44 +116,48 @@ export function FocusInfo({ body, onClose }: FocusInfoProps) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Stats Grid */}
|
{/* Stats and Actions Grid */}
|
||||||
<div className="grid grid-cols-2 gap-2 mb-2">
|
<div className="grid grid-cols-2 gap-2 mb-2">
|
||||||
<div className="bg-white/5 rounded-lg p-2 flex items-center gap-2.5 border border-white/5">
|
{/* Column 1: Heliocentric Distance Card */}
|
||||||
<div className="p-1.5 rounded-full bg-blue-500/20 text-blue-400">
|
|
||||||
<Ruler size={14} />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div className="text-[9px] text-gray-500 uppercase">日心距离</div>
|
|
||||||
<div className="text-xs font-mono text-gray-200">{distance} AU</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{isProbe && (
|
|
||||||
<div className="bg-white/5 rounded-lg p-2 flex items-center gap-2.5 border border-white/5">
|
<div className="bg-white/5 rounded-lg p-2 flex items-center gap-2.5 border border-white/5">
|
||||||
<div className={`p-1.5 rounded-full ${isActive ? 'bg-green-500/20 text-green-400' : 'bg-red-500/20 text-red-400'}`}>
|
<div className="p-1.5 rounded-full bg-blue-500/20 text-blue-400">
|
||||||
<Activity size={14} />
|
<Ruler size={14} />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="text-[9px] text-gray-500 uppercase">状态</div>
|
<div className="text-[9px] text-gray-500 uppercase">日心距离</div>
|
||||||
<div className={`text-xs font-medium ${isActive ? 'text-green-300' : 'text-red-300'}`}>
|
<div className="text-xs font-mono text-gray-200">{distance} AU</div>
|
||||||
{isActive ? '运行中' : '已失效'}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
|
{/* Column 2: JPL Horizons Button */}
|
||||||
|
<div className="flex items-center justify-end">
|
||||||
|
<button
|
||||||
|
onClick={fetchNasaData}
|
||||||
|
className="px-3 py-1.5 rounded-lg bg-cyan-950/30 text-cyan-400 border border-cyan-500/20 hover:bg-cyan-500/10 hover:border-cyan-500/50 transition-all flex items-center gap-2 text-[10px] font-mono uppercase tracking-widest group/btn w-full justify-end"
|
||||||
|
title="连接 JPL Horizons System"
|
||||||
|
>
|
||||||
|
<Radar size={12} className="group-hover/btn:animate-spin-slow" />
|
||||||
|
<span>JPL Horizons</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Actions Row */}
|
{/* Conditional Probe Status Card (if isProbe is true, this goes in a new row) */}
|
||||||
<div className="flex justify-end">
|
{isProbe && (
|
||||||
<button
|
<div className="grid grid-cols-1 mb-2">
|
||||||
onClick={fetchNasaData}
|
<div className="bg-white/5 rounded-lg p-2 flex items-center gap-2.5 border border-white/5">
|
||||||
className="px-3 py-1.5 rounded-lg bg-cyan-950/30 text-cyan-400 border border-cyan-500/20 hover:bg-cyan-500/10 hover:border-cyan-500/50 transition-all flex items-center gap-2 text-[10px] font-mono uppercase tracking-widest group/btn"
|
<div className={`p-1.5 rounded-full ${isActive ? 'bg-green-500/20 text-green-400' : 'bg-red-500/20 text-red-400'}`}>
|
||||||
title="连接 JPL Horizons System"
|
<Activity size={14} />
|
||||||
>
|
</div>
|
||||||
<Radar size={12} className="group-hover/btn:animate-spin-slow" />
|
<div>
|
||||||
<span>JPL Horizons</span>
|
<div className="text-[9px] text-gray-500 uppercase">状态</div>
|
||||||
</button>
|
<div className={`text-xs font-medium ${isActive ? 'text-green-300' : 'text-red-300'}`}>
|
||||||
</div>
|
{isActive ? '运行中' : '已失效'}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Connecting Line/Triangle pointing down to the body */}
|
{/* Connecting Line/Triangle pointing down to the body */}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue