muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
109 stars 232 forks source link

Title css overrides width of kanban_state widget #110

Closed kh-badep closed 5 years ago

kh-badep commented 5 years ago

https://github.com/muk-it/muk_web/blob/864ea3c3f598627bdbef20b39c7988a015ebf5c5/muk_web_theme/static/src/scss/form_view.scss#L53

There is a css style that I think is intended to change the display of form title but unfortunately ends up overriding the css of kanban_state buttons in some cases: For example in the task form view, the kanban_state button becomes invisible. Thi s is due to the fact that the field kanban_state is defined inside a div with oe_title class:

                    <div class="oe_title pr-0">
                        <h1 class="d-flex flex-row justify-content-between">
                            <field name="priority" widget="priority" class="mr-3"/>
                            <field name="name" class="o_task_name text-truncate" placeholder="Task Title..."/>
                            <field name="kanban_state" widget="state_selection" class="ml-auto"/>
                        </h1>
                    </div>

Possible solution: add class o_field_char to the css selector so the the style applies only to fields of type char.

keshrath commented 5 years ago

can you point me to a view where this happens? or make a screenshot?

kh-badep commented 5 years ago

The task form view is a good example: Capture d’écran_2019-07-20_16-10-07

keshrath commented 5 years ago

https://github.com/muk-it/muk_web/commit/1a3e1f764d5abf21f465f5fcd63d674fe59b8b17