Skip to content

Commit db1ef6f

Browse files
committed
More layout tweaks
1 parent 3d20468 commit db1ef6f

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

WooCommerce/Classes/ViewRelated/Notifications/Cells/NoteDetailsCommentTableViewCell.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ class NoteDetailsCommentTableViewCell: UITableViewCell {
171171
configureStarView()
172172
configureDefaultAppearance()
173173
}
174+
175+
override public func prepareForReuse() {
176+
starView.prepareForReuse()
177+
}
174178
}
175179

176180

@@ -314,6 +318,6 @@ private struct Approve {
314318
//
315319
private struct Star {
316320
static let totalStars = 5
317-
static let size = Double(16)
321+
static let size = Double(18)
318322
static let margin = Double(2)
319323
}

WooCommerce/Classes/ViewRelated/Notifications/Cells/NoteDetailsCommentTableViewCell.xib

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,22 @@
6666
</stackView>
6767
</subviews>
6868
</stackView>
69+
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="P0O-u0-r7G">
70+
<rect key="frame" x="0.0" y="42" width="284" height="10"/>
71+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
72+
<constraints>
73+
<constraint firstAttribute="height" constant="10" id="qsU-jb-cDi"/>
74+
</constraints>
75+
</view>
6976
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Iy-55-tos">
70-
<rect key="frame" x="0.0" y="42" width="284" height="20"/>
77+
<rect key="frame" x="0.0" y="54" width="284" height="18"/>
7178
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
7279
<constraints>
73-
<constraint firstAttribute="height" constant="20" id="qAn-B5-boc"/>
80+
<constraint firstAttribute="height" constant="18" id="qAn-B5-boc"/>
7481
</constraints>
7582
</view>
7683
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" editable="NO" adjustsFontForContentSizeCategory="YES" translatesAutoresizingMaskIntoConstraints="NO" id="FpQ-yp-a6e">
77-
<rect key="frame" x="0.0" y="64" width="284" height="104"/>
84+
<rect key="frame" x="0.0" y="74" width="284" height="94"/>
7885
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
7986
<constraints>
8087
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="28" id="mhf-tZ-eCY"/>

0 commit comments

Comments
 (0)