From 9b5b93dc31648a2644043fee40ee288c0e89f903 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Sun, 22 Jun 2025 10:23:27 +0800 Subject: [PATCH] iphone menu spacing --- Limelight/MenuSectionView.m | 6 +++++- Limelight/ViewControllers/SettingsViewController.m | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Limelight/MenuSectionView.m b/Limelight/MenuSectionView.m index 948dabcd..6f3b0ce7 100644 --- a/Limelight/MenuSectionView.m +++ b/Limelight/MenuSectionView.m @@ -49,7 +49,7 @@ _sectionTitle = @"Section"; _expanded = YES; _backgroundColor = [UIColor clearColor]; - _rootStackViewSpacing = 18; + _rootStackViewSpacing = [self isIPhone] ? 10 : 16; _subStackViews = [NSMutableArray array]; _headerViewHeight = 37; _headerViewVerticalSpacing = 25; @@ -303,6 +303,10 @@ #pragma mark - Private Methods +- (BOOL)isIPhone { + return [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone; +} + - (void)toggleFold { self.expanded = !self.expanded; [self updateViewForFoldState]; diff --git a/Limelight/ViewControllers/SettingsViewController.m b/Limelight/ViewControllers/SettingsViewController.m index b634e555..ec97a6db 100644 --- a/Limelight/ViewControllers/SettingsViewController.m +++ b/Limelight/ViewControllers/SettingsViewController.m @@ -1048,7 +1048,7 @@ BOOL isCustomResolution(CGSize res) { currentSettings.settingsMenuMode = [NSNumber numberWithInteger:currentSettingsMenuMode]; [dataMan saveData]; - _parentStack.spacing = 15; + _parentStack.spacing = [self isIPhone] ? 10 : 15; [self loadFavoriteSettingStackIdentifiers]; for(NSString* settingIdentifier in _favoriteSettingStackIdentifiers){