Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1weather
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
1weather
Commits
c662952e
Commit
c662952e
authored
Apr 30, 2021
by
Demid Merzlyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TodayAlertCell: fix layout issue.
parent
3b591898
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
1Weather/UI/View controllers/Today/Cells/TodayAlertCell.swift
+3
-1
No files found.
1Weather/UI/View controllers/Today/Cells/TodayAlertCell.swift
View file @
c662952e
...
...
@@ -133,6 +133,7 @@ private extension TodayAlertCell {
infoLabel
.
lineBreakMode
=
.
byWordWrapping
infoLabel
.
font
=
AppFont
.
SFPro
.
regular
(
size
:
16
)
infoLabel
.
text
=
""
// E.g. "Frost Advisory and 2 more alerts"
infoLabel
.
setContentCompressionResistancePriority
(
.
defaultLow
,
for
:
.
horizontal
)
container
.
addSubview
(
infoLabel
)
timeAgoLabel
.
font
=
AppFont
.
SFPro
.
regular
(
size
:
14
)
...
...
@@ -156,7 +157,8 @@ private extension TodayAlertCell {
make
.
left
.
equalTo
(
alertImageView
.
snp
.
right
)
.
offset
(
18
)
make
.
top
.
equalToSuperview
()
.
inset
(
12
)
make
.
bottom
.
equalToSuperview
()
.
inset
(
12
)
make
.
right
.
equalTo
(
timeAgoLabel
.
snp
.
left
)
.
offset
(
-
18
)
make
.
right
.
lessThanOrEqualTo
(
moreLabel
.
snp
.
left
)
.
offset
(
-
8
)
make
.
right
.
lessThanOrEqualTo
(
timeAgoLabel
.
snp
.
left
)
.
offset
(
-
8
)
}
moreLabel
.
snp
.
makeConstraints
{
(
make
)
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment