Space analytics overflow fixes (#3794)

* Remove duplicate noDataFound entry in intl_en.arb

* Use lang code instead of full language name

* Remove horizontal padding when button outline isn't shown

* Make request button text wrap, remove padding entirely if outline not shown
This commit is contained in:
Kelrap 2025-08-25 09:21:00 -04:00 committed by GitHub
parent 50a2005075
commit 7d67a064fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 11 deletions

View file

@ -5191,7 +5191,6 @@
}
}
},
"noDataFound": "No data found",
"activityFinishedMessage": "All Finished!",
"endForAll": "End for all"
}

View file

@ -110,10 +110,8 @@ class SpaceAnalyticsView extends StatelessWidget {
children: [
if (controller.selectedLanguage != null)
Text(
controller.selectedLanguage!
.getDisplayName(context) ??
controller
.selectedLanguage!.displayName,
controller.selectedLanguage!.langCode
.toUpperCase(),
style: TextStyle(
color: theme
.colorScheme.onPrimaryContainer,
@ -507,19 +505,20 @@ class _RequestButton extends StatelessWidget {
child: Opacity(
opacity: status.enabled ? 0.9 : 0.3,
child: Container(
padding: const EdgeInsets.symmetric(
horizontal: 8.0,
vertical: 4.0,
),
padding: (status != RequestStatus.unavailable)
? const EdgeInsets.symmetric(
horizontal: 8.0,
vertical: 4.0,
)
: null,
decoration: status != RequestStatus.unavailable
? BoxDecoration(
borderRadius: BorderRadius.circular(40),
color: status.backgroundColor(context),
)
: null,
child: Row(
child: Wrap(
spacing: 8.0,
mainAxisSize: MainAxisSize.min,
children: [
if (status.icon != null)
Icon(