forked from organicmaps/organicmaps
[MAPSME-5830] [ios] Fixed «Add review» button offset & size.
This commit is contained in:
parent
80125fdb26
commit
e7af998c8d
2 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,6 @@ final class PPPReview: MWMTableViewCell {
|
|||
addReviewButton.setTitle("+ \(L("leave_a_review"))", for: .normal)
|
||||
addReviewButton.setTitleColor(UIColor.white, for: .normal)
|
||||
addReviewButton.titleLabel?.font = UIFont.bold12()
|
||||
addReviewButton.layer.cornerRadius = addReviewButton.height / 2
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,6 +38,7 @@ final class PPPReview: MWMTableViewCell {
|
|||
ratingSummaryView.noValueColor = UIColor.blackSecondaryText()
|
||||
reviewsLabel.text = L("placepage_no_reviews")
|
||||
addReviewButton.isHidden = false
|
||||
addReviewButton.layer.cornerRadius = addReviewButton.height / 2
|
||||
} else {
|
||||
ratingSummaryView.noValueImage = #imageLiteral(resourceName: "ic_12px_radio_on")
|
||||
ratingSummaryView.noValueColor = UIColor.linkBlue()
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</device>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13174"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="67u-jC-41D" customClass="RatingSummaryView" customModule="cm_beta" customModuleProvider="target">
|
||||
<rect key="frame" x="12" y="8" width="48" height="21.5"/>
|
||||
<rect key="frame" x="12" y="8" width="48" height="17.5"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="48" placeholder="YES" id="Ebr-Th-1jm"/>
|
||||
|
@ -76,7 +76,7 @@
|
|||
</userDefinedRuntimeAttributes>
|
||||
</imageView>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Ga0-6D-Ttl">
|
||||
<rect key="frame" x="190" y="8" width="118" height="21"/>
|
||||
<rect key="frame" x="190" y="8" width="118" height="17"/>
|
||||
<inset key="contentEdgeInsets" minX="8" minY="2" maxX="8" maxY="2"/>
|
||||
<state key="normal" title="+ Leave review"/>
|
||||
<connections>
|
||||
|
@ -93,7 +93,7 @@
|
|||
<constraint firstAttribute="bottom" secondItem="t1Z-Sp-Xi5" secondAttribute="bottom" id="MXa-Ha-DVe"/>
|
||||
<constraint firstItem="Thk-j3-Or0" firstAttribute="centerY" secondItem="Zth-C7-aXm" secondAttribute="centerY" id="NbS-0e-2Dh"/>
|
||||
<constraint firstAttribute="trailing" secondItem="t1Z-Sp-Xi5" secondAttribute="trailing" id="Ygd-7d-cGu"/>
|
||||
<constraint firstAttribute="bottom" secondItem="67u-jC-41D" secondAttribute="bottom" constant="8" id="dOX-Tv-3un"/>
|
||||
<constraint firstAttribute="bottom" secondItem="67u-jC-41D" secondAttribute="bottom" constant="12" id="dOX-Tv-3un"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Thk-j3-Or0" secondAttribute="trailing" constant="16" id="dgG-Cd-fzs"/>
|
||||
<constraint firstItem="Ga0-6D-Ttl" firstAttribute="top" secondItem="67u-jC-41D" secondAttribute="top" id="hGC-mM-qmJ"/>
|
||||
<constraint firstItem="Ga0-6D-Ttl" firstAttribute="bottom" secondItem="67u-jC-41D" secondAttribute="bottom" id="j4s-Yj-bcx"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue