Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

enable useCompactLayout user setting an add a class when it's enabled #986

Merged
merged 1 commit into from
Jun 1, 2017

Conversation

uhoreg
Copy link
Member

@uhoreg uhoreg commented Jun 1, 2017

Signed-off-by: Hubert Chathi <hubert@uhoreg.ca>
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@@ -245,6 +263,9 @@ export default React.createClass({
if (topBar) {
bodyClasses += ' mx_MatrixChat_toolbarShowing';
}
if (this.state.useCompactLayout) {
bodyClasses += ' mx_MatrixChat_useCompactLayout';
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is now getting a little more complex any chance you could pleez incorporate classnames
e.g like here

const labelClasses = classNames({

@ara4n
Copy link
Member

ara4n commented Jun 1, 2017

this lgtm - thank you! i don't mind particularly concatenating classNames; imo the classnames helper only gives better legibility if you have lots of different inputs flying around.

@ara4n ara4n merged commit ee965a8 into matrix-org:develop Jun 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants