Fix style and directives template refactor on right sidebar of details