mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-04 03:36:29 +08:00
feat(mobile): optimize mobile experience by hiding non-essential features
- Hide live streaming tab in mobile navigation components - Hide remote input and live stream configurations in settings - Hide API configuration description text on mobile - Disable HTTP server startup on mobile devices to save resources This streamlines the mobile interface while preserving full functionality on tablet and TV platforms.
This commit is contained in:
@@ -65,12 +65,13 @@ export default function RootLayout() {
|
||||
}, [loaded, lastCheckTime, checkForUpdate]);
|
||||
|
||||
useEffect(() => {
|
||||
if (remoteInputEnabled) {
|
||||
// 只有在非手机端才启动远程控制服务器
|
||||
if (remoteInputEnabled && responsiveConfig.deviceType !== "mobile") {
|
||||
startServer();
|
||||
} else {
|
||||
stopServer();
|
||||
}
|
||||
}, [remoteInputEnabled, startServer, stopServer]);
|
||||
}, [remoteInputEnabled, startServer, stopServer, responsiveConfig.deviceType]);
|
||||
|
||||
if (!loaded && !error) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user