From 1da5af9b376a55a0a7710e73f820bb6ae1fbdaa7 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 25 Jun 2019 09:19:29 -0400 Subject: [PATCH] Compose screen: Fix long display names overlapping character count --- Tusker/Screens/Compose/ComposeViewController.xib | 4 ++-- Tusker/Views/Account Detail/LargeAccountDetailView.swift | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Tusker/Screens/Compose/ComposeViewController.xib b/Tusker/Screens/Compose/ComposeViewController.xib index 9ed1e78e..412ffc2d 100644 --- a/Tusker/Screens/Compose/ComposeViewController.xib +++ b/Tusker/Screens/Compose/ComposeViewController.xib @@ -1,8 +1,8 @@ - + - + diff --git a/Tusker/Views/Account Detail/LargeAccountDetailView.swift b/Tusker/Views/Account Detail/LargeAccountDetailView.swift index 5492fc75..92dd6817 100644 --- a/Tusker/Views/Account Detail/LargeAccountDetailView.swift +++ b/Tusker/Views/Account Detail/LargeAccountDetailView.swift @@ -38,8 +38,10 @@ class LargeAccountDetailView: UIView, PreferencesAdaptive { avatarImageView.topAnchor.constraint(equalTo: topAnchor, constant: 8), avatarImageView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -8), displayNameLabel.leadingAnchor.constraint(equalTo: avatarImageView.trailingAnchor, constant: 8), + displayNameLabel.trailingAnchor.constraint(equalTo: trailingAnchor), displayNameLabel.topAnchor.constraint(equalTo: topAnchor, constant: 8), usernameLabel.leadingAnchor.constraint(equalTo: avatarImageView.trailingAnchor, constant: 8), + usernameLabel.trailingAnchor.constraint(equalTo: trailingAnchor), usernameLabel.topAnchor.constraint(equalTo: displayNameLabel.bottomAnchor) ]) }