summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-07-23 17:09:22 +0200
committerAlexandre Kühn <aku@odoo.com>2018-07-24 12:51:14 +0200
commitb67b89c315ad250407c749796d5f775e1dd6fd15 (patch)
tree86e68cc276fd65bdd284f76f7075ee1e7def98fb /addons/web/static/src/js/fields/basic_fields.js
parenta425695e92ee930ee23af8ec57a2c1693703b1d1 (diff)
[FIX] web: correctly align value/text in stat button
Before this commit, the style of the value and text in some stat buttons were broken. The design of the stat button is to have a single value and a single text which are stacked as follow: [CSS] [Visually] [Example] .o_stat_info +---------+ +------------+ .o_stat_value | | | | .o_stat_text | value | | 10 | | text | | Forecasted | | | | | +---------+ +------------+ However, some stat buttons use multiple values or texts. For example: [CSS] [Visually] [Example] .o_stat_info +-------------+ +------------+ .o_stat_value | | | | .o_stat_info | value text | | 3 Hour(s) | .o_stat_value | text | | Lost | .o_stat_text | | | | .o_stat_text +-------------+ +------------+ [CSS] [Visually] [Example] .o_stat_info +---------------+ +---------------+ .o_stat_text | | | | .o_stat_text | text value | | Min: 10.00 | .o_stat_info | text value | | Max: 20.00 | .o_stat_value | | | | .o_stat_value +---------------+ +---------------+ The latter is works fine with block, which guarantees vertical alignment. However, the former case has some alignment issues like this: [Visually] +------------+ | | | 3 | | Hour(s) | | Lost | | | +------------+ This is due to the use of `display:block` for any `.o_stat_text` and `.o_stat_text`. This commit fixes this issue, without affecting the other cases. Task-ID 1841523
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions