From e73cd0f2d41f3942f0c6e0def95d7833e66c89e2 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Wed, 26 Jul 2023 14:48:56 +0200 Subject: [PATCH 1/2] sf_mobile_base: improve detail card title cusomization Allows to set a class on the detail card title. And one is added to the css to have smaller font. --- .../static/wms/src/components/detail/detail_card.js | 2 +- shopfloor_mobile_base/static/wms/src/css/main.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/shopfloor_mobile_base/static/wms/src/components/detail/detail_card.js b/shopfloor_mobile_base/static/wms/src/components/detail/detail_card.js index 711c87edaf..f771d0bb12 100644 --- a/shopfloor_mobile_base/static/wms/src/components/detail/detail_card.js +++ b/shopfloor_mobile_base/static/wms/src/components/detail/detail_card.js @@ -12,7 +12,7 @@ Vue.component("item-detail-card", { template: `
- + diff --git a/shopfloor_mobile_base/static/wms/src/css/main.css b/shopfloor_mobile_base/static/wms/src/css/main.css index 1dd3a41342..b97b529386 100644 --- a/shopfloor_mobile_base/static/wms/src/css/main.css +++ b/shopfloor_mobile_base/static/wms/src/css/main.css @@ -457,6 +457,10 @@ main.v-content > .v-content__wrap > .header .container { line-height: 1.1rem; } +.v-card .v-card__title-smaller { + font-size: 0.9rem; +} + /* TODO: likely to be applied to all */ .list .v-list-item { border-bottom: 1px solid #ccc; From 61fa0b15c85399a43f1bb5257666de006a7c630d Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Wed, 26 Jul 2023 14:50:47 +0200 Subject: [PATCH 2/2] sf_delivery_shipment_mobile: make package name smaller --- .../static/wms/src/scenario/delivery_shipment.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shopfloor_delivery_shipment_mobile/static/wms/src/scenario/delivery_shipment.js b/shopfloor_delivery_shipment_mobile/static/wms/src/scenario/delivery_shipment.js index a7e4779bd8..e925eb782c 100644 --- a/shopfloor_delivery_shipment_mobile/static/wms/src/scenario/delivery_shipment.js +++ b/shopfloor_delivery_shipment_mobile/static/wms/src/scenario/delivery_shipment.js @@ -241,6 +241,8 @@ const DeliveryShipment = { key_title: "name", on_title_action: action, title_action_icon: "mdi-upload", + // This helps having the transporter package fit in one line + title_class: "v-card__title-smaller", }; }, pack_color: function (pack) {