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:
zimplexing
2025-08-13 19:30:29 +08:00
parent cdf0d72bdc
commit 6a31e8ac85
6 changed files with 31 additions and 11 deletions

View File

@@ -62,6 +62,11 @@ export const MobileBottomNavigation: React.FC<MobileBottomNavigationProps> = ({
return null;
}
// 在手机端过滤掉直播 tab
const filteredNavigationItems = navigationItems.filter(item =>
responsiveConfig.deviceType !== 'mobile' || item.name !== 'live'
);
const handleNavigation = (route: string) => {
if (route === '/') {
router.push('/');
@@ -90,7 +95,7 @@ export const MobileBottomNavigation: React.FC<MobileBottomNavigationProps> = ({
return (
<View style={[styles.container, dynamicStyles.container]}>
{navigationItems.map((item) => {
{filteredNavigationItems.map((item) => {
const isActive = isActiveRoute(item.route);
const IconComponent = item.icon;