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