fix: don't overflow language options (#1496)

* fix: don't overflow language options

* fix: match font size of number and text, bold number

* default to send on enter

* fix: don't run mode validation if not enabled
This commit is contained in:
ggurdin 2025-01-17 11:50:24 -05:00 committed by GitHub
parent 5383a62502
commit 426d1429b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 11 deletions

View file

@ -337,8 +337,12 @@ class ChatInputRow extends StatelessWidget {
maxLines: 8,
autofocus: !PlatformInfos.isMobile,
keyboardType: TextInputType.multiline,
textInputAction: AppConfig.sendOnEnter == true &&
PlatformInfos.isMobile
// #Pangea
// textInputAction: AppConfig.sendOnEnter == true &&
textInputAction: AppConfig.sendOnEnter ??
true &&
// Pangea#
PlatformInfos.isMobile
? TextInputAction.send
: null,
// #Pangea

View file

@ -157,7 +157,8 @@ class LevelBarPopup extends StatelessWidget {
Text(
"${use.pointValue > 0 ? '+' : ''}${use.pointValue}",
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w900,
fontSize: 14,
height: 1,
color: use.pointValue > 0
? AppConfig.gold

View file

@ -118,7 +118,9 @@ class ConversationBotSettingsForm extends StatelessWidget {
onChanged: hasPermission && enabled ? onUpdateBotMode : null,
enabled: enabled,
validator: (value) {
return value == null ? L10n.of(context).botModeValidation : null;
return value == null && enabled
? L10n.of(context).botModeValidation
: null;
},
),
),

View file

@ -154,14 +154,16 @@ class LanguageDropDownEntry extends StatelessWidget {
language: languageModel,
),
const SizedBox(width: 10),
Text(
languageModel.getDisplayName(context) ?? "",
style: const TextStyle().copyWith(
color: Theme.of(context).textTheme.bodyLarge!.color,
fontSize: 14,
Flexible(
child: Text(
languageModel.getDisplayName(context) ?? "",
style: const TextStyle().copyWith(
color: Theme.of(context).textTheme.bodyLarge!.color,
fontSize: 14,
),
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.center,
),
overflow: TextOverflow.clip,
textAlign: TextAlign.center,
),
const SizedBox(width: 10),
if (isL2List && languageModel.l2Support != L2SupportEnum.full)