Improved sidebar css compatibility