mod: 字重w500全部上调到w600;横版卡片标题回退为2行

This commit is contained in:
orz12
2024-08-26 06:55:49 +08:00
parent 40819100c3
commit df2e577ebc
16 changed files with 21 additions and 20 deletions

View File

@@ -92,7 +92,7 @@ class LiveContent extends StatelessWidget {
Text(
liveItem.title as String,
textAlign: TextAlign.start,
style: const TextStyle(fontSize: 13, fontWeight: FontWeight.w500),
style: const TextStyle(fontSize: 13, fontWeight: FontWeight.w600),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),

View File

@@ -183,12 +183,12 @@ class VideoContent extends StatelessWidget {
videoItem.title as String,
textAlign: TextAlign.start,
style: TextStyle(
fontWeight: FontWeight.w500,
fontWeight: FontWeight.w600,
fontSize: Theme.of(context).textTheme.bodyMedium!.fontSize,
height: 1.36,
height: 1.42,
letterSpacing: 0.3,
),
maxLines: 3,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
),
@@ -196,14 +196,14 @@ class VideoContent extends StatelessWidget {
Expanded(
child: RichText(
overflow: TextOverflow.ellipsis,
maxLines: 3,
maxLines: 2,
text: TextSpan(
children: [
for (final i in videoItem.title) ...[
TextSpan(
text: i['text'] as String,
style: TextStyle(
fontWeight: FontWeight.w500,
fontWeight: FontWeight.w600,
fontSize: Theme.of(context)
.textTheme
.bodyMedium!
@@ -242,7 +242,7 @@ class VideoContent extends StatelessWidget {
Expanded(
flex: 0,
child: Text(
"${pubdate}${showOwner ? videoItem.owner.name : ''}",
"${pubdate} ${showOwner ? videoItem.owner.name : ''}",
maxLines: 1,
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelSmall!.fontSize,

View File

@@ -218,6 +218,7 @@ class VideoContent extends StatelessWidget {
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(
fontWeight: FontWeight.w600,
height: 1.38,
)),
),