chore: make space nav bar narrower on mobile and ensure space nav bar matches user's theme

This commit is contained in:
ggurdin 2025-05-23 09:35:56 -04:00
commit fef96359c9
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
3 changed files with 110 additions and 100 deletions

View file

@ -44,7 +44,11 @@ class NaviRailItem extends StatelessWidget {
bottom: 8,
left: 0,
child: AnimatedContainer(
width: isSelected ? 8 : 0,
width: isSelected
? FluffyThemes.isColumnMode(context)
? 8
: 4
: 0,
duration: FluffyThemes.animationDuration,
curve: FluffyThemes.animationCurve,
decoration: BoxDecoration(

View file

@ -34,8 +34,7 @@ class SettingsView extends StatelessWidget {
?.tryGet<String>('account');
return Row(
children: [
if (FluffyThemes.isColumnMode(context) ||
AppConfig.displayNavigationRail) ...[
if (FluffyThemes.isColumnMode(context)) ...[
SpacesNavigationRail(
activeSpaceId: null,
onGoToChats: () => context.go('/rooms'),