diff --git a/README.md b/README.md index 9eb4cfc1be05..08d48c62cb6d 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ addon | version | maintainers | summary [web_environment_ribbon](web_environment_ribbon/) | 16.0.1.0.0 | | Web Environment Ribbon [web_export_html_as_text](web_export_html_as_text/) | 16.0.1.0.0 | | Web Export Html As Text [web_field_numeric_formatting](web_field_numeric_formatting/) | 16.0.1.0.0 | | Allow to render float and integer fields without thousands separator -[web_field_tooltip](web_field_tooltip/) | 16.0.1.2.0 | | Displays customizable tooltips for fields +[web_field_tooltip](web_field_tooltip/) | 16.0.1.2.1 | | Displays customizable tooltips for fields [web_font_size_report_layout](web_font_size_report_layout/) | 16.0.1.1.0 | | Adds a font size selector (pt) to the Document Layout wizard [web_form_banner](web_form_banner/) | 16.0.1.1.0 | | Web Form Banner [web_group_by_percentage](web_group_by_percentage/) | 16.0.1.0.1 | | Show the percentage of the total sum in group by rows diff --git a/web_field_tooltip/README.rst b/web_field_tooltip/README.rst index 32dfe94ba836..d63d855fe22a 100644 --- a/web_field_tooltip/README.rst +++ b/web_field_tooltip/README.rst @@ -11,7 +11,7 @@ Web Field Tooltip !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:497e93ee883ccf6a570f1bc5f936bee62f2a4d0fb695b31a31a7d6cea3cfbf4b + !! source digest: sha256:344c6f02467d70df81da2a31876bac5105348703353f7a02834160f71076719f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/web_field_tooltip/__manifest__.py b/web_field_tooltip/__manifest__.py index d33e5f933059..07805105af99 100644 --- a/web_field_tooltip/__manifest__.py +++ b/web_field_tooltip/__manifest__.py @@ -6,7 +6,7 @@ "name": "Web Field Tooltip", "summary": """ Displays customizable tooltips for fields""", - "version": "16.0.1.2.0", + "version": "16.0.1.2.1", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", diff --git a/web_field_tooltip/static/description/index.html b/web_field_tooltip/static/description/index.html index 76c823930c36..8ae37a91b902 100644 --- a/web_field_tooltip/static/description/index.html +++ b/web_field_tooltip/static/description/index.html @@ -372,7 +372,7 @@

Web Field Tooltip

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:497e93ee883ccf6a570f1bc5f936bee62f2a4d0fb695b31a31a7d6cea3cfbf4b +!! source digest: sha256:344c6f02467d70df81da2a31876bac5105348703353f7a02834160f71076719f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module gives the possibility to add tooltips next to fields labels on any diff --git a/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.esm.js b/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.esm.js index f6eb184bc437..25f804967edc 100644 --- a/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.esm.js +++ b/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.esm.js @@ -19,7 +19,8 @@ export class FieldTooltip extends Component { this.showAddHelper = session.can_manage_tooltips && session.tooltip_show_add_helper; this.fieldTooltip = this.props.field.field_tooltip; - + this.colorMode = + this.env.services.cookie.current.color_scheme === "dark" ? "dark" : "light"; if (session.can_manage_tooltips) { this.dialogService = useService("dialog"); } @@ -30,6 +31,7 @@ export class FieldTooltip extends Component { return { title: props.field.string, help: markup(this.tooltipText), + colorMode: this.colorMode, }; } @@ -66,7 +68,6 @@ export class FieldTooltip extends Component { { closeOnClickAway: true, position: "top", - title: "title", } ); } diff --git a/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.scss b/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.scss index 0eb4788d24c4..dea2a00ce340 100644 --- a/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.scss +++ b/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.scss @@ -18,6 +18,7 @@ sup.field-tooltip { .popup-div { min-width: 100px; + max-width: 400px; min-height: 30px; > * { @@ -32,4 +33,15 @@ sup.field-tooltip { .popover-content { background-color: white; } + + &.popup-dark-mode { + .popover-title { + font-weight: bold; + background-color: #242733; + } + + .popover-content { + background-color: unset; + } + } } diff --git a/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.xml b/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.xml index 4ab68c328e98..47eae35d3279 100644 --- a/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.xml +++ b/web_field_tooltip/static/src/components/field_tooltip/field_tooltip.xml @@ -16,7 +16,9 @@ -