Fix css when rule is displayed from a modal issue displayed in a resource viewer