优化停止视频的按钮位置

This commit is contained in:
mmc
2026-09-20 13:58:23 +08:00
parent 92978da4a9
commit 1fd99e62d6

View File

@@ -851,6 +851,18 @@ export default function DeviceOverviewPage() {
<div style={{ marginBottom: 8 }}>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 4 }}>
<span style={{ fontSize: 14, fontWeight: 500, color: "#666" }}>{t('devices.s25')}</span>
{!isUAV && robotPlayActive && (
<div style={{ textAlign: 'right' }}>
<Button
size="small"
danger
onClick={() => {
setRobotPlayActive(false);
}}
>{t('devices.fixed2StopFixed2VideoFixed2')}</Button>
</div>
)}
{isUAV && (
<Select
size="small"
@@ -926,17 +938,6 @@ export default function DeviceOverviewPage() {
)
)}
</div>
{!isUAV && robotPlayActive && (
<div style={{ marginTop: 6, textAlign: 'right' }}>
<Button
size="small"
danger
onClick={() => {
setRobotPlayActive(false);
}}
>{t('devices.fixed2StopFixed2VideoFixed2')}</Button>
</div>
)}
</div>