Skip to content

Commit 7e9061b

Browse files
committed
评论 调整
1 parent 583423f commit 7e9061b

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Coding_iOS/Controllers/DynamicCommentCell.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
102102
[_detailBtn mas_makeConstraints:^(MASConstraintMaker *make) {
103103
make.size.mas_equalTo(CGSizeMake(60, 30));
104104
make.right.equalTo(_contentBGView).offset(-10);
105-
make.bottom.equalTo(_contentBGView).offset(-5);
105+
make.centerY.equalTo(_timeLabel);
106106
}];
107107
}
108108

@@ -141,6 +141,7 @@ - (void)setCurComment:(ProjectLineNote *)curComment{
141141
}
142142
curBottomY += [DynamicCommentCell imageCollectionViewHeightWithCount:imagesCount];
143143
[_timeLabel setY:curBottomY];
144+
_timeLabel.width = _detailBtn.hidden? kTaskCommentCell_ContentWidth: kTaskCommentCell_ContentWidth - 60;
144145
_timeLabel.text = [NSString stringWithFormat:@"%@ 发布于 %@", _curComment.author.name,[_curComment.created_at stringDisplay_HHmm]];
145146
}
146147

Coding_iOS/Views/Cell/MRPRCommentCell.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ - (void)setCurItem:(ProjectLineNote *)curItem{
117117
curBottomY += [MRPRCommentCell imageCollectionViewHeightWithCount:imagesCount];
118118

119119
[_timeLabel setY:curBottomY];
120+
_timeLabel.width = _detailBtn.hidden? kScreen_Width - 40 - 2*kPaddingLeftWidth: kScreen_Width - 40 - 2*kPaddingLeftWidth - 60;
120121
_timeLabel.text = [NSString stringWithFormat:@"%@ %@", _curItem.author.name, [_curItem.created_at stringDisplay_HHmm]];
121122
}
122123

Coding_iOS/Views/Cell/TaskCommentCell.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
103103
[_detailBtn mas_makeConstraints:^(MASConstraintMaker *make) {
104104
make.size.mas_equalTo(CGSizeMake(60, 30));
105105
make.right.equalTo(_contentBGView).offset(-10);
106-
make.bottom.equalTo(_contentBGView).offset(-5);
106+
make.centerY.equalTo(_timeLabel);
107107
}];
108108
}
109109
}
@@ -147,6 +147,7 @@ - (void)setCurComment:(TaskComment *)curComment{
147147
curBottomY += [TaskCommentCell imageCollectionViewHeightWithCount:imagesCount];
148148

149149
[_timeLabel setY:curBottomY];
150+
_timeLabel.width = _detailBtn.hidden? kTaskCommentCell_ContentWidth: kTaskCommentCell_ContentWidth - 60;
150151
_timeLabel.text = [NSString stringWithFormat:@"%@ 发布于 %@", _curComment.owner.name, [_curComment.created_at stringDisplay_HHmm]];
151152
}
152153

Coding_iOS/Views/Cell/TopicCommentCell.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ - (void)setToComment:(ProjectTopic *)toComment{
178178
curBottomY += [TopicCommentCell imageCollectionViewHeightWithCount:imagesCount];
179179

180180
[_timeLabel setY:curBottomY];
181+
_timeLabel.width = _detailBtn.hidden? kScreen_Width - 40 - 2*kPaddingLeftWidth: kScreen_Width - 40 - 2*kPaddingLeftWidth - 60;
181182
_timeLabel.text = [NSString stringWithFormat:@"%@ 发布于 %@", _toComment.owner.name, [_toComment.created_at stringDisplay_HHmm]];
182183
}
183184

0 commit comments

Comments
 (0)