Compose screen: Fix long display names overlapping character count

This commit is contained in:
Shadowfacts 2019-06-25 09:19:29 -04:00
parent 50d641eb59
commit 1da5af9b37
Signed by: shadowfacts
GPG Key ID: 83FB3304046BADA4
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14810.11" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14810.12" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/> <device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14766.13"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14766.15"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
<capability name="iOS 13.0 system colors" minToolsVersion="11.0"/> <capability name="iOS 13.0 system colors" minToolsVersion="11.0"/>

View File

@ -38,8 +38,10 @@ class LargeAccountDetailView: UIView, PreferencesAdaptive {
avatarImageView.topAnchor.constraint(equalTo: topAnchor, constant: 8), avatarImageView.topAnchor.constraint(equalTo: topAnchor, constant: 8),
avatarImageView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -8), avatarImageView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -8),
displayNameLabel.leadingAnchor.constraint(equalTo: avatarImageView.trailingAnchor, constant: 8), displayNameLabel.leadingAnchor.constraint(equalTo: avatarImageView.trailingAnchor, constant: 8),
displayNameLabel.trailingAnchor.constraint(equalTo: trailingAnchor),
displayNameLabel.topAnchor.constraint(equalTo: topAnchor, constant: 8), displayNameLabel.topAnchor.constraint(equalTo: topAnchor, constant: 8),
usernameLabel.leadingAnchor.constraint(equalTo: avatarImageView.trailingAnchor, constant: 8), usernameLabel.leadingAnchor.constraint(equalTo: avatarImageView.trailingAnchor, constant: 8),
usernameLabel.trailingAnchor.constraint(equalTo: trailingAnchor),
usernameLabel.topAnchor.constraint(equalTo: displayNameLabel.bottomAnchor) usernameLabel.topAnchor.constraint(equalTo: displayNameLabel.bottomAnchor)
]) ])
} }