[FIX] website_event_track: Prevent title from flickering

Fixing the display of long track names by taking all the
width for the title in edit mode and forcing line breaks in
read mode.

Task-2941724

closes odoo/odoo#98396

X-original-commit: 4e2484e84bfaf8c4d21b0ac887c7c80594142792
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: Dieudonné Amélie (amdi) <admi@odoo.com>
This commit is contained in:
amdi-odoo
2022-08-23 15:05:29 +02:00
parent 1e19842303
commit 947cd7ebbe
@@ -164,13 +164,15 @@
<field name="legend_normal" invisible="1"/>
<field name="legend_done" invisible="1"/>
<widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
<field name="kanban_state" widget="state_selection" class="ms-3 float-end"/>
<field name="website_image" widget="image" class="oe_avatar"/>
<div class="oe_title">
<label for="name"/>
<h1>
<field name="name" placeholder="e.g. Inspiring Business Talk"/>
</h1>
<div class="d-flex gap-4 mb-3">
<div class="flex-grow-1">
<label for="name"/>
<h1>
<field name="name" placeholder="e.g. Inspiring Business Talk"/>
</h1>
</div>
<field name="website_image" widget="image" class="oe_avatar"/>
<field name="kanban_state" widget="state_selection"/>
</div>
<group>
<group>