From 6d7c9fd553df25ed53a382779cda52ab490e9270 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 16 Aug 2020 14:40:06 -0400 Subject: [PATCH] Make tap targets on status action buttons larger --- .../ConversationMainStatusTableViewCell.xib | 107 +++++++---- .../Status/TimelineStatusTableViewCell.swift | 4 + .../Status/TimelineStatusTableViewCell.xib | 167 +++++++++++------- 3 files changed, 177 insertions(+), 101 deletions(-) diff --git a/Tusker/Views/Status/ConversationMainStatusTableViewCell.xib b/Tusker/Views/Status/ConversationMainStatusTableViewCell.xib index ef0abaf828..0b02bdc984 100644 --- a/Tusker/Views/Status/ConversationMainStatusTableViewCell.xib +++ b/Tusker/Views/Status/ConversationMainStatusTableViewCell.xib @@ -1,9 +1,12 @@ - + - + + + + @@ -35,12 +38,12 @@ - - + + @@ -64,21 +67,21 @@ - + Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda. - + - - + + - + - - - + @@ -204,7 +215,8 @@ - + + @@ -212,7 +224,6 @@ - @@ -236,11 +247,29 @@ - + + + + + + + + + + + + + + + + + + + diff --git a/Tusker/Views/Status/TimelineStatusTableViewCell.swift b/Tusker/Views/Status/TimelineStatusTableViewCell.swift index a961924b21..afad3c10be 100644 --- a/Tusker/Views/Status/TimelineStatusTableViewCell.swift +++ b/Tusker/Views/Status/TimelineStatusTableViewCell.swift @@ -41,9 +41,13 @@ class TimelineStatusTableViewCell: BaseStatusTableViewCell { override func awakeFromNib() { super.awakeFromNib() + reblogLabel.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(reblogLabelPressed))) accessibilityElements!.insert(reblogLabel!, at: 0) + + // todo: double check this on RTL layouts + replyButton.imageView!.leadingAnchor.constraint(equalTo: contentTextView.leadingAnchor).isActive = true } override func createObserversIfNecessary() { diff --git a/Tusker/Views/Status/TimelineStatusTableViewCell.xib b/Tusker/Views/Status/TimelineStatusTableViewCell.xib index 371284dbd7..00fdd10871 100644 --- a/Tusker/Views/Status/TimelineStatusTableViewCell.xib +++ b/Tusker/Views/Status/TimelineStatusTableViewCell.xib @@ -1,9 +1,11 @@ - + - + + + @@ -17,9 +19,9 @@ @@ -37,13 +39,13 @@ - + @@ -88,16 +90,16 @@ - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -171,8 +196,8 @@ - - + + @@ -185,12 +210,15 @@ + + + + - @@ -200,6 +228,7 @@ + @@ -208,7 +237,6 @@ - @@ -231,7 +259,7 @@ - + @@ -239,5 +267,20 @@ + + + + + + + + + + + + + + +