Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] web: adapt z-index and dimensions of properties field types #159463

Conversation

abd-msyukyu-odoo
Copy link
Contributor

In 1, dropdowns were updated and it impacted the properties field edition:

  • z-index of the popover opened for the dropdown of a property field type was lower than the element it was opened for, resulting in part of the popover being hidden.
  • img style (dimensions) was not applied as the dropdown list is now a popover (sibling instead of child), resulting in bigger images.

This commit fixes the issue by adding a class on the field type selection popover.

task-3834506

@robodoo
Copy link
Contributor

robodoo commented Mar 27, 2024

@abd-msyukyu-odoo abd-msyukyu-odoo force-pushed the saas-17.2-knowledge-fix-popover-zindex-abd branch from d659e5b to ad86f41 Compare March 27, 2024 13:09
@C3POdoo C3POdoo requested review from a team, juliusc2066 and BastienFafchamps and removed request for a team March 27, 2024 13:09
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 27, 2024
Copy link
Contributor

@awa-odoo awa-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @abd-msyukyu-odoo

A couple comments on this one, thanks for the fix!

Cheers!

@@ -62,3 +62,13 @@
}
}
}

.o_field_property_definition_type_popover {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also fix the dark mode while we're at it?

saas-17.1:
image

saas-17.2:
image

I think in the past this was solved by Stéphane with:
https://github.com/odoo/enterprise/blob/master/web_enterprise/static/src/views/fields/properties/properties_field.dark.scss#L2

But it's probably not applied anymore?
To double-check (and clean the old rule if no longer useful).

width: 20px;
height: 20px;
}
&.popover {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be put on the containing rule then? To simplify.

In [1], dropdowns were updated and it impacted the properties field edition:
- z-index of the popover opened for the dropdown of a property field type was
  lower than the element it was opened for, resulting in part of the popover
  being hidden.
- img style (dimensions) was not applied as the dropdown list is now a popover
  (sibling instead of child), resulting in bigger images.

This commit fixes the issue by adding a class on the field type selection
popover.

[1]: odoo@7b7a261

task-3834506
@abd-msyukyu-odoo abd-msyukyu-odoo force-pushed the saas-17.2-knowledge-fix-popover-zindex-abd branch from ad86f41 to 5a5d515 Compare March 27, 2024 16:39
@abd-msyukyu-odoo
Copy link
Contributor Author

@awa-odoo Thanks for the review! I added an ENT PR for the dark part and updated the code
https://github.com/odoo/enterprise/pull/59566

@awa-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Mar 28, 2024
In [1], dropdowns were updated and it impacted the properties field edition:
- z-index of the popover opened for the dropdown of a property field type was
  lower than the element it was opened for, resulting in part of the popover
  being hidden.
- img style (dimensions) was not applied as the dropdown list is now a popover
  (sibling instead of child), resulting in bigger images.

This commit fixes the issue by adding a class on the field type selection
popover.

[1]: 7b7a261

task-3834506

closes #159463

Related: odoo/enterprise#59566
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
@robodoo robodoo closed this Mar 28, 2024
@fw-bot
Copy link
Contributor

fw-bot commented Apr 1, 2024

@abd-msyukyu-odoo @awa-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

1 similar comment
@fw-bot
Copy link
Contributor

fw-bot commented Apr 2, 2024

@abd-msyukyu-odoo @awa-odoo this pull request has forward-port PRs awaiting action (not merged or closed):

@fw-bot fw-bot deleted the saas-17.2-knowledge-fix-popover-zindex-abd branch April 11, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants