[FIX] mass_mailing: prevent website s_hr interference with mass_mailing

`wWebsite`'s `s_hr` snippet css targets the same element as
`mass_mailing`'s `hr` snippet, resulting in interferences. This raises
the speciticity of `mass_mailing.s_hr`'s css to counter that issue.

X-original-commit: 112758b7c07870c5d002a87f4eed58bd8feb9bee
Part-of: odoo/odoo#92138
This commit is contained in:
Antoine Guenet
2022-05-24 12:48:20 +02:00
parent 20449d3fab
commit 332da2e2fb
2 changed files with 4 additions and 1 deletions
@@ -1,5 +1,5 @@
.s_hr {
.o_layout .s_hr {
line-height: 0;
hr {
padding: 0;
@@ -5,6 +5,9 @@
<xpath expr="//div[hasclass('s_hr')]" position="attributes">
<attribute name="class" add="o_mail_snippet_general pt16 pb16" remove="pt32 pb32" separator=" "/>
</xpath>
<xpath expr="//hr" position="attributes">
<attribute name="class" remove="w-100 mx-auto" separator=" "/>
</xpath>
</template>
<template id="s_hr_options" inherit_id="mass_mailing.snippet_options">