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:
parent
5383a62502
commit
426d1429b3
4 changed files with 20 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
},
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue