mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
aa384567f0
Summary: This animation was changing the width of the after pseudoelement, which was causing a lot of repainting and layout to occur in the very bottom corner of the screen. This in turn caused an idle window to use 50-70% CPU all the time during initial sync. The fix is to change the after element to three spans and modify the animation to alter their opacity which avoids having to do style and layout reflows due to width changes. It also looks slightly cooler IMHO :-) An idle main window now sits around 8% CPU on my laptop. Test Plan: Run locally, verify that CPU is lower. Reviewers: evan, juan Reviewed By: juan Subscribers: halla Differential Revision: https://phab.nylas.com/D3810 |
||
---|---|---|
.. | ||
assets | ||
lib | ||
spec | ||
stylesheets | ||
package.json |