File tree 4 files changed +6
-2
lines changed
4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
102
102
[_detailBtn mas_makeConstraints: ^(MASConstraintMaker *make) {
103
103
make.size .mas_equalTo (CGSizeMake (60 , 30 ));
104
104
make.right .equalTo (_contentBGView).offset (-10 );
105
- make.bottom .equalTo (_contentBGView). offset (- 5 );
105
+ make.centerY .equalTo (_timeLabel );
106
106
}];
107
107
}
108
108
@@ -141,6 +141,7 @@ - (void)setCurComment:(ProjectLineNote *)curComment{
141
141
}
142
142
curBottomY += [DynamicCommentCell imageCollectionViewHeightWithCount: imagesCount];
143
143
[_timeLabel setY: curBottomY];
144
+ _timeLabel.width = _detailBtn.hidden ? kTaskCommentCell_ContentWidth : kTaskCommentCell_ContentWidth - 60 ;
144
145
_timeLabel.text = [NSString stringWithFormat: @" %@ 发布于 %@ " , _curComment.author.name,[_curComment.created_at stringDisplay_HHmm ]];
145
146
}
146
147
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ - (void)setCurItem:(ProjectLineNote *)curItem{
117
117
curBottomY += [MRPRCommentCell imageCollectionViewHeightWithCount: imagesCount];
118
118
119
119
[_timeLabel setY: curBottomY];
120
+ _timeLabel.width = _detailBtn.hidden ? kScreen_Width - 40 - 2 *kPaddingLeftWidth : kScreen_Width - 40 - 2 *kPaddingLeftWidth - 60 ;
120
121
_timeLabel.text = [NSString stringWithFormat: @" %@ %@ " , _curItem.author.name, [_curItem.created_at stringDisplay_HHmm ]];
121
122
}
122
123
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
103
103
[_detailBtn mas_makeConstraints: ^(MASConstraintMaker *make) {
104
104
make.size .mas_equalTo (CGSizeMake (60 , 30 ));
105
105
make.right .equalTo (_contentBGView).offset (-10 );
106
- make.bottom .equalTo (_contentBGView). offset (- 5 );
106
+ make.centerY .equalTo (_timeLabel );
107
107
}];
108
108
}
109
109
}
@@ -147,6 +147,7 @@ - (void)setCurComment:(TaskComment *)curComment{
147
147
curBottomY += [TaskCommentCell imageCollectionViewHeightWithCount: imagesCount];
148
148
149
149
[_timeLabel setY: curBottomY];
150
+ _timeLabel.width = _detailBtn.hidden ? kTaskCommentCell_ContentWidth : kTaskCommentCell_ContentWidth - 60 ;
150
151
_timeLabel.text = [NSString stringWithFormat: @" %@ 发布于 %@ " , _curComment.owner.name, [_curComment.created_at stringDisplay_HHmm ]];
151
152
}
152
153
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ - (void)setToComment:(ProjectTopic *)toComment{
178
178
curBottomY += [TopicCommentCell imageCollectionViewHeightWithCount: imagesCount];
179
179
180
180
[_timeLabel setY: curBottomY];
181
+ _timeLabel.width = _detailBtn.hidden ? kScreen_Width - 40 - 2 *kPaddingLeftWidth : kScreen_Width - 40 - 2 *kPaddingLeftWidth - 60 ;
181
182
_timeLabel.text = [NSString stringWithFormat: @" %@ 发布于 %@ " , _toComment.owner.name, [_toComment.created_at stringDisplay_HHmm ]];
182
183
}
183
184
You can’t perform that action at this time.
0 commit comments