Merge pull request #4911 from pangeachat/make-word-card-even-taller

chore: more word card spacing adjustments
This commit is contained in:
ggurdin 2025-12-19 10:15:47 -05:00 committed by GitHub
commit b8f2a85eed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 10 deletions

View file

@ -50,6 +50,8 @@ class LemmaMeaningDisplay extends StatelessWidget {
L10n.of(context).other;
return RichText(
maxLines: 2,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.center,
text: TextSpan(
style: DefaultTextStyle.of(context).style.copyWith(

View file

@ -69,11 +69,12 @@ class WordZoomWidget extends StatelessWidget {
),
child: CompositedTransformTarget(
link: layerLink,
child: SingleChildScrollView(
child: Column(
spacing: 12.0,
children: [
Row(
child: Column(
spacing: 12.0,
children: [
SizedBox(
height: 40.0,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
onClose != null
@ -103,6 +104,7 @@ class WordZoomWidget extends StatelessWidget {
Brightness.light
? AppConfig.yellowDark
: AppConfig.yellowLight,
overflow: TextOverflow.ellipsis,
),
),
),
@ -124,9 +126,11 @@ class WordZoomWidget extends StatelessWidget {
),
],
),
Column(
spacing: 12.0,
mainAxisSize: MainAxisSize.min,
),
Expanded(
child: Column(
spacing: 4.0,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
showTranscript
? PhoneticTranscriptionWidget(
@ -158,8 +162,8 @@ class WordZoomWidget extends StatelessWidget {
),
],
),
],
),
),
],
),
),
),