More animations

pull/853/head
Vincent 5 years ago
parent 7e5f967379
commit ad48730300

@ -300,7 +300,7 @@
this.setDisappearingMessages(seconds), this.setDisappearingMessages(seconds),
onGoBack: () => { onGoBack: () => {
this.$('.conversation-content-right').hide(); this.hideConversationRight();
}, },
onUpdateGroup: () => { onUpdateGroup: () => {
@ -340,6 +340,17 @@
onClicked: this.selectMember.bind(this), onClicked: this.selectMember.bind(this),
}); });
this.hideConversationRight = () => {
this.$('.conversation-content-right').css({
'margin-right': '-22vw',
});
};
this.showConversationRight = () => {
this.$('.conversation-content-right').css({
'margin-right': '0vw',
});
};
this.showGroupSettings = () => { this.showGroupSettings = () => {
if (!this.groupSettings) { if (!this.groupSettings) {
this.groupSettings = new Whisper.ReactWrapperView({ this.groupSettings = new Whisper.ReactWrapperView({
@ -351,11 +362,12 @@
} else { } else {
this.groupSettings.update(getGroupSettingsProp(this.model)); this.groupSettings.update(getGroupSettingsProp(this.model));
} }
this.$('.conversation-content-right').show();
this.showConversationRight();
}; };
this.hideGroupSettings = () => { this.hideGroupSettings = () => {
this.$('.conversation-content-right').hide(); this.showConversationRight();
}; };
this.memberView.render(); this.memberView.render();

@ -1,3 +1,9 @@
.conversation-content-right {
transition: $session-transition-duration;
width: 22vw;
margin-right: -22vw;
}
.group-settings { .group-settings {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

Loading…
Cancel
Save