[FW][FIX] mail: make chatter flex in Documents app #162855
Closed
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.
The chatter in documents was not flex, which made it take a lot of space without any wrapping. As a result, usually chatter took all the screen and content was massively overflowing, resulting in poor UX.
This was caused by a specific stylerule in documents with chatter that made sense in a earlier version of chatter CSS, but this is no longer needed.
Also we actually want to reuse most style of chatter in form view. This commit adds
o-mail-ChatterContainer
classname on same HTML node aso-mail-Form-Chatter
and adapts style, so that Document can set this classname to reuse style.opw-3681435
https://github.com/odoo/enterprise/pull/60772
Before
![before](https://private-user-images.githubusercontent.com/6569390/323180994-ec3c2004-dee2-4367-85bf-0806e07cb424.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyNjU5MzIsIm5iZiI6MTcxODI2NTYzMiwicGF0aCI6Ii82NTY5MzkwLzMyMzE4MDk5NC1lYzNjMjAwNC1kZWUyLTQzNjctODViZi0wODA2ZTA3Y2I0MjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTNUMDgwMDMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjZkNDZkYzZiMTBiOGE0ODY1ZmY5MjllNGJmZmE5N2MxYzY4N2NiYzNiODZkOTczZDYyZDA4OTNjNGJkYWQ3MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.dXtyzSMrD7U-nASqDqicbKdxPMK3osm53ETNXqBY4WA)
After
![after](https://private-user-images.githubusercontent.com/6569390/323181022-0bcdc4af-0487-46e7-a245-4aa37028ead6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyNjU5MzIsIm5iZiI6MTcxODI2NTYzMiwicGF0aCI6Ii82NTY5MzkwLzMyMzE4MTAyMi0wYmNkYzRhZi0wNDg3LTQ2ZTctYTI0NS00YWEzNzAyOGVhZDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTNUMDgwMDMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDAzMDczNDBkYmVhMGY2MjkzNWFkMjNhZDQ5MjkxMTcxZDM2YThkNDU5ZjM2NjE3MDFkMzJlNDIwNzJjZjcxMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.e5j9jjq85O2WXpkg_hD3duOpFzcqc_xX121X-65OU5U)
Forward-Port-Of: #161940