Files
web/web_widget_numeric_step/static/src/numeric_step.scss
Jairo Llopis 360356aa62 [FIX] web_widget_numeric_step: list view column min width
Default width is too narrow for these fields in list views, which makes it uncomfortable to use in desktops.

@moduon MT-4472
2024-08-06 08:59:25 +02:00

23 lines
644 B
SCSS

// Copyright 2023 Moduon Team S.L.
// License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
.widget_numeric_step {
// Hide the buttons until the user hovers if possible
@media (hover: hover) {
.btn_numeric_step {
visibility: hidden;
}
}
&:hover .btn_numeric_step {
visibility: visible;
}
}
.o_numeric_step_cell {
// Default for old browsers
min-width: 15 * $btn-padding-x;
// Value hardcoded in `FIXED_FIELD_COLUMN_WIDTHS.float` + width of 2
// FontAwesome icons + 2 buttons * 2 horizontal paddings
min-width: calc(92px + 2ex + 4 * #{$btn-padding-x});
}