diff --git a/fusion_plating/fusion_plating_configurator/static/src/scss/express_order.scss b/fusion_plating/fusion_plating_configurator/static/src/scss/express_order.scss index 39e84d20..cfa32a36 100644 --- a/fusion_plating/fusion_plating_configurator/static/src/scss/express_order.scss +++ b/fusion_plating/fusion_plating_configurator/static/src/scss/express_order.scss @@ -133,6 +133,7 @@ } .o_fp_xpr_cell.span-2 { grid-column: span 2; } + .o_fp_xpr_cell.row-span-2 { grid-row: span 2; } .o_fp_xpr_cell.required > label::after { content: " *"; color: $xpr-bad; @@ -175,7 +176,7 @@ } .o_fp_xpr_po_row { display: grid; - grid-template-columns: 130px 1fr; + grid-template-columns: 110px 1fr; align-items: center; gap: 8px; padding: 2px 0; @@ -188,13 +189,48 @@ text-transform: none; letter-spacing: 0; } - input, .o_field_widget input { + // Make the field widget + its inner controls fill the right column + > .o_field_widget, + > .o_field_widget > div, + > .o_field_widget > .o-dropdown, + > .o_field_widget > .o-autocomplete, + > .o_field_binary, + > .o_field_char, + > .o_field_date { + width: 100%; + display: block; + } + input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), + select { border: none; border-bottom: 1px solid $xpr-border-strong; background: transparent; - padding: 2px 0; + padding: 4px 4px; font-size: 13px; width: 100%; + min-height: 28px; + box-sizing: border-box; + + &:focus { + border-bottom-color: $xpr-accent; + background: $xpr-cell-focus; + outline: none; + } + } + // File-upload widget: make the button look consistent + .o_field_binary { + .o_select_file_button, + button { + background: $xpr-accent; + color: #fff; + border: none; + padding: 4px 14px; + border-radius: 3px; + font-size: 12px; + font-weight: 500; + + &:hover { background: $xpr-accent-hover; } + } } } .o_fp_xpr_po_chase { diff --git a/fusion_plating/fusion_plating_configurator/views/fp_express_order_views.xml b/fusion_plating/fusion_plating_configurator/views/fp_express_order_views.xml index 4c6ee3c8..7d1882d5 100644 --- a/fusion_plating/fusion_plating_configurator/views/fp_express_order_views.xml +++ b/fusion_plating/fusion_plating_configurator/views/fp_express_order_views.xml @@ -86,8 +86,12 @@ invisible="not partner_id"/> - -