diff --git a/Riot/Modules/Room/Views/InputToolbar/RoomActionsBar.swift b/Riot/Modules/Room/Views/InputToolbar/RoomActionsBar.swift
index 7f4bdcb98..0cf11e292 100644
--- a/Riot/Modules/Room/Views/InputToolbar/RoomActionsBar.swift
+++ b/Riot/Modules/Room/Views/InputToolbar/RoomActionsBar.swift
@@ -77,6 +77,7 @@ import UIKit
var currentX: CGFloat = 0
for button in actionButtons {
+ button.transform = CGAffineTransform.identity
button.frame = CGRect(x: currentX, y: 0, width: self.bounds.height, height: self.bounds.height)
currentX = button.frame.maxX + itemSpacing
}
@@ -98,7 +99,7 @@ import UIKit
button.transform = CGAffineTransform(translationX: 0, y: self.bounds.height)
}
for (index, button) in actionButtons.enumerated() {
- UIView.animate(withDuration: 0.32, delay: 0.05 * Double(index), usingSpringWithDamping: 0.5, initialSpringVelocity: 7, options: .curveEaseInOut) {
+ UIView.animate(withDuration: 0.38, delay: 0.05 * Double(index), usingSpringWithDamping: 0.5, initialSpringVelocity: 7, options: .curveEaseInOut) {
button.transform = CGAffineTransform.identity
} completion: { (finished) in
completion?(finished)
@@ -106,7 +107,7 @@ import UIKit
}
} else {
for (index, button) in actionButtons.enumerated() {
- UIView.animate(withDuration: 0.2, delay: 0.05 * Double(index), options: .curveEaseInOut) {
+ UIView.animate(withDuration: 0.3, delay: 0.05 * Double(index), options: .curveEaseInOut) {
button.transform = CGAffineTransform(translationX: 0, y: self.bounds.height)
} completion: { (finished) in
completion?(finished)
diff --git a/Riot/Modules/Room/Views/Title/RoomTitleView.h b/Riot/Modules/Room/Views/Title/RoomTitleView.h
index 9769d3999..d4295093f 100644
--- a/Riot/Modules/Room/Views/Title/RoomTitleView.h
+++ b/Riot/Modules/Room/Views/Title/RoomTitleView.h
@@ -44,6 +44,8 @@
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *missedDiscussionsBadgeLabelLeadingConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *pictureViewHeightConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *pictureViewWidthConstraint;
+@property (weak, nonatomic) IBOutlet NSLayoutConstraint *dotViewCenterXConstraint;
+@property (weak, nonatomic) IBOutlet NSLayoutConstraint *dotViewCenterYConstraint;
/**
The room preview data may be used when mxRoom instance is not available
diff --git a/Riot/Modules/Room/Views/Title/RoomTitleView.m b/Riot/Modules/Room/Views/Title/RoomTitleView.m
index 37390bd80..6a338590e 100644
--- a/Riot/Modules/Room/Views/Title/RoomTitleView.m
+++ b/Riot/Modules/Room/Views/Title/RoomTitleView.m
@@ -147,6 +147,8 @@
self.pictureViewHeightConstraint.constant = 28;
self.displayNameTextField.font = [UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
self.typingLabel.font = [UIFont systemFontOfSize:10];
+ self.dotViewCenterXConstraint.constant = 3;
+ self.dotViewCenterYConstraint.constant = -2;
}
else
{
@@ -156,7 +158,9 @@
self.pictureViewHeightConstraint.constant = 32;
self.displayNameTextField.font = [UIFont systemFontOfSize:17 weight:UIFontWeightMedium];
self.typingLabel.font = [UIFont systemFontOfSize:12];
- }
+ self.dotViewCenterXConstraint.constant = 0;
+ self.dotViewCenterYConstraint.constant = -1;
+ }
}
- (void)setTypingNotificationString:(NSString *)typingNotificationString
diff --git a/Riot/Modules/Room/Views/Title/RoomTitleView.xib b/Riot/Modules/Room/Views/Title/RoomTitleView.xib
index 8280083bd..0d6fc7ca1 100644
--- a/Riot/Modules/Room/Views/Title/RoomTitleView.xib
+++ b/Riot/Modules/Room/Views/Title/RoomTitleView.xib
@@ -71,7 +71,7 @@
-
+
@@ -92,6 +92,8 @@
+
+