diff --git a/addons/website/static/src/components/dialog/page_properties.js b/addons/website/static/src/components/dialog/page_properties.js index b7f7cbc25db..273ebb7bdf0 100644 --- a/addons/website/static/src/components/dialog/page_properties.js +++ b/addons/website/static/src/components/dialog/page_properties.js @@ -7,7 +7,7 @@ import {sprintf} from "@web/core/utils/strings"; import {WebsiteDialog} from './dialog'; import {FormViewDialog} from "@web/views/view_dialogs/form_view_dialog"; import { renderToFragment } from "@web/core/utils/render"; -import { Component, useEffect, useState, xml, useRef } from "@odoo/owl"; +import { Component, useEffect, useState, xml, useRef, onMounted } from "@odoo/owl"; export class PageDependencies extends Component { setup() { @@ -152,6 +152,14 @@ export class PagePropertiesDialog extends FormViewDialog { this.website = useService('website'); this.viewProps.resId = this.resId; + + // TODO: Remove in master, the `w-100` is causing a button's + // misalignment on the page properties dialog, this should be + // replaced by adding extra buttons to the default container in + // `this.viewProps.buttonTemplate`. + onMounted(() => { + this.modalRef.el?.querySelector(".modal-footer .o_cp_buttons")?.classList.remove("w-100"); + }); } get resId() {