[FIX] stock_picking_batch_custom: fix CSS specificity for quantity font-size in operator view

The general tbody tr.o_data_row td rule had higher specificity (0,3,2) than
td[name="quantity"] (0,2,1), overriding the 1.5rem font-size. Fixed by using
tbody tr.o_data_row td[name="quantity"] (0,3,3) for the size/weight override.
Also fixed table. prefix on all selectors: arch class lands on the controller
root div, not the <table> element.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
GitHub Copilot 2026-05-29 19:32:34 +02:00
parent 483c4ad5a7
commit f5ba2d786c

View file

@ -9,43 +9,48 @@ table.o_list_table tbody tr.o_data_row:hover td {
} }
/* Widen the quantity column in detailed operations so it is easier to tap */ /* Widen the quantity column in detailed operations so it is easier to tap */
table.o_batch_move_line_list th[data-name="quantity"], /* Note: arch class lands on the root <div> of the list controller, not <table> */
table.o_batch_move_line_list td[name="quantity"] { .o_batch_move_line_list th[data-name="quantity"],
.o_batch_move_line_list td[name="quantity"] {
min-width: 140px; min-width: 140px;
} }
table.o_batch_move_line_list td[name="quantity"] .o_field_widget input { .o_batch_move_line_list td[name="quantity"] .o_field_widget input {
min-height: 44px; min-height: 44px;
font-size: 1.1rem; font-size: 1.1rem;
} }
/* ── Operator view: full-screen, touch-optimised list ── */ /* ── Operator view: full-screen, touch-optimised list ── */
table.o_batch_operator_list tbody tr.o_data_row td { .o_batch_operator_list tbody tr.o_data_row td {
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
font-size: 1.05rem; font-size: 1.05rem;
} }
table.o_batch_operator_list th[data-name="quantity"], .o_batch_operator_list th[data-name="quantity"],
table.o_batch_operator_list td[name="quantity"] { .o_batch_operator_list td[name="quantity"] {
min-width: 130px; min-width: 130px;
font-size: 1.5rem;
font-weight: 700;
text-align: center; text-align: center;
} }
table.o_batch_operator_list td[name="quantity"] .o_field_widget input { /* Higher specificity to override the general row td font-size rule */
.o_batch_operator_list tbody tr.o_data_row td[name="quantity"] {
font-size: 1.5rem;
font-weight: 700;
}
.o_batch_operator_list td[name="quantity"] .o_field_widget input {
min-height: 56px; min-height: 56px;
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
text-align: center; text-align: center;
} }
table.o_batch_operator_list td[name="is_collected"] { .o_batch_operator_list td[name="is_collected"] {
min-width: 80px; min-width: 80px;
text-align: center; text-align: center;
} }
table.o_batch_operator_list td[name="is_collected"] .o_field_widget { .o_batch_operator_list td[name="is_collected"] .o_field_widget {
transform: scale(1.4); transform: scale(1.4);
} }