add min lines to display name to make them look not weird
This commit is contained in:
parent
e633750ced
commit
8e7b0e013d
|
@ -374,7 +374,10 @@ class ProfileViewDisplay extends StatelessWidget {
|
||||||
d,
|
d,
|
||||||
Padding(
|
Padding(
|
||||||
padding: themes.defaultMargins,
|
padding: themes.defaultMargins,
|
||||||
child: PostTextRenderer(input: accountModel.note),
|
child: PostTextRenderer(
|
||||||
|
input: accountModel.note,
|
||||||
|
identityName: accountModel.identity,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
if (relationshipModel != null)
|
if (relationshipModel != null)
|
||||||
Padding(
|
Padding(
|
||||||
|
|
|
@ -160,7 +160,10 @@ class ConversationButton extends StatelessWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (model.lastStatus != null)
|
if (model.lastStatus != null)
|
||||||
PostTextRenderer(input: model.lastStatus!.content),
|
PostTextRenderer(
|
||||||
|
input: model.lastStatus!.content,
|
||||||
|
identityName: model.identity,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -111,6 +111,7 @@ class DisplayName extends StatelessWidget {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
SelectableText(
|
SelectableText(
|
||||||
|
minLines: 1,
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
account.displayName,
|
account.displayName,
|
||||||
style: usernameStyle,
|
style: usernameStyle,
|
||||||
|
@ -291,7 +292,10 @@ class _PostBodyState extends State<PostBody> {
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
PostTextRenderer(input: widget.content),
|
PostTextRenderer(
|
||||||
|
input: widget.content,
|
||||||
|
identityName: widget.model.identity,
|
||||||
|
),
|
||||||
MediaAttachments(models: widget.media),
|
MediaAttachments(models: widget.media),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -5,10 +5,12 @@ import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
class PostTextRenderer extends StatelessWidget {
|
class PostTextRenderer extends StatelessWidget {
|
||||||
const PostTextRenderer({
|
const PostTextRenderer({
|
||||||
|
required this.identityName,
|
||||||
required this.input,
|
required this.input,
|
||||||
Key? key,
|
Key? key,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
final String input;
|
final String input;
|
||||||
|
final String identityName;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
Loading…
Reference in New Issue