🐛 Fix overflow in dashboard
This commit is contained in:
parent
1a0721ba3a
commit
cedd0b083a
@ -258,8 +258,18 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (x.subtitle != null) Text(x.subtitle!),
|
||||
Text(x.body),
|
||||
if (x.subtitle != null)
|
||||
Text(
|
||||
x.subtitle!,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
)
|
||||
else
|
||||
Text(
|
||||
x.body,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@ -326,6 +336,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
||||
return SizedBox(
|
||||
width: min(480, width),
|
||||
child: Card(
|
||||
child: SingleChildScrollView(
|
||||
child: PostListEntryWidget(
|
||||
item: item,
|
||||
isClickable: true,
|
||||
@ -338,6 +349,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
||||
.colorScheme
|
||||
.surfaceContainerLow,
|
||||
),
|
||||
),
|
||||
).paddingSymmetric(horizontal: 8),
|
||||
);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user