Tuesday, June 4, 2019
2 changes · master
Code cleanup and technical improvements
The mail Chatter topbar layout was reorganized to be easier to maintain while keeping the same visual behavior for users. Follower dropdown controls were also made more consistent and accessible, reducing the risk of display or interaction issues in future updates.
Original PR description
The Chatter's topbar (containing the buttons like 'Send Message', 'Log Note') was difficult to deal with: specially the positioning of its content (a float into another float...). So, this commit refactors the topbar's layout using Flexbox. It allows to simplify and reduce the amount of (S)CSS needed to achieve the same visual result. In the process, the Followers (dropdown) buttons now use correctly nested .btn-group components (as described by the Bootstrap 4 documentation) and SubTypes dropdown items use semantic html element (<button>) instead of attaching behavior on icon element(<i>). Finally a few Chatter's tests requested a slight adaptation (cf. trimming element's textual content). Task ID: 1928573
This change aligns the enterprise document and web interface templates with related updates in the main Odoo platform. It is an internal cleanup to keep the enterprise modules compatible and maintainable, with little direct impact on day-to-day users.
Original PR description
* web_enterprise, documents task-1961045