From 8abeb09ed2c436c0110ae6ba2f9948c7df96fe15 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 711c87edafd..f771d0bb123 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 1dd3a41342c..b97b5293861 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 8e21cdc7d65127242a5a48e20866b3cba67e2ff6 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 0510737f940..f20e020364d 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 @@ -221,6 +221,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) {