Add a compacter message view mode; closes #2906 #2913
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@RocketChat/core
Closes #2906
Adds 3 different message view modes (instead of only normal/compact):
Most notable is the new 'compact' option, which makes the messages really compact, IRC-style.
The old 'compact' mode is still available, but renamed to 'cozy'
Before:![](https://camo.githubusercontent.com/2711b8bbe332b3be5aa7167730c4b82315fd14b1be1bd7170a29cadf4b83bab2/68747470733a2f2f692e696d6775722e636f6d2f65676e6e736c422e706e67)
![](https://camo.githubusercontent.com/7b94b124ac552c013e3f8afcd2febcfedff7426e5436d819e2c5639c35593aa0/68747470733a2f2f692e696d6775722e636f6d2f676645673333772e706e67)
After:
This does hide the admin/mod etc tags though to save some space, but maybe we should add an option to show/hide it on the admin pages
Also adds an additional option in the user preferences to show or hide usernames in the message template, to potentially save some extra space (could be useful on mobile devices for example).