From aaeb9f31cd1b49ca726cc07261f161a3954715c9 Mon Sep 17 00:00:00 2001 From: luis Date: Fri, 31 Jan 2025 19:02:31 +0100 Subject: [PATCH] AVecinal/avecinal#57 product_print_category_supermarket: fix shelf labels --- .../static/css/pricetag_60x30mm.scss | 33 ++-- .../views/product_template.xml | 1 + .../views/report_pricetag_normal.xml | 166 +++++++++--------- 3 files changed, 100 insertions(+), 100 deletions(-) diff --git a/product_print_category_supermarket/static/css/pricetag_60x30mm.scss b/product_print_category_supermarket/static/css/pricetag_60x30mm.scss index bcb6ac5..4d90d41 100644 --- a/product_print_category_supermarket/static/css/pricetag_60x30mm.scss +++ b/product_print_category_supermarket/static/css/pricetag_60x30mm.scss @@ -1,6 +1,6 @@ .pricetag_container{ - height: 3.7cm; - width: 7.1cm; + height: 3.1cm; + width: 6.3cm; border: 2px solid black; text-align: left; margin: 10; @@ -11,12 +11,13 @@ } .product_name { - font-size: 1em; + font-size: 0.9em; font-weight: bold; position: absolute; margin-top: 1mm; margin-left: 1mm; text-align: left; + overflow: hidden; } .product_code { @@ -28,9 +29,9 @@ } .product_state { - font-size: 0.8em; + font-size: 0.7em; position: absolute; - margin-top: 1.7cm; + margin-top: 1.2cm; right: 0.3cm; text-align: right; } @@ -38,13 +39,13 @@ .product_labels { vertical-align:bottom; position: absolute; - margin-top: 2cm; + margin-top: 1.2cm; margin-left: 0.1cm; width: 35%; img { - height: 1cm; - width: 1cm; + height: 0.9cm; + width: 0.9cm; float: left; padding: 0.5mm } @@ -53,10 +54,10 @@ .product_member_price { font-size: 1.1em; position: absolute; - width: 50%; + width: 48%; text-align: right; - margin-top: 2.2cm; - margin-left: 3cm; + margin-top: 1.7cm; + margin-left: 3.3cm; padding-right: 0.2cm; background-color: green; color: white; @@ -67,8 +68,8 @@ position: absolute; width: 50%; text-align: left; - margin-top: 2.4cm; - margin-left: 0.8cm; + margin-top: 2cm; + margin-left: 1.9cm; padding-right: 0.2cm; } @@ -76,7 +77,7 @@ font-size: 1em; position: absolute; width: 50%; - margin-top: 2.9cm; + margin-top: 2.4cm; margin-left: 3cm; text-align: right; padding-right: 0.2cm; @@ -87,8 +88,8 @@ font-size: 0.6em; position: absolute; width: 50%; - margin-top: 3cm; - margin-left: 0.8cm; + margin-top: 2.55cm; + margin-left: 1.9cm; text-align: left; padding-right: 0.2cm; } diff --git a/product_print_category_supermarket/views/product_template.xml b/product_print_category_supermarket/views/product_template.xml index 5929cd7..accd4e7 100644 --- a/product_print_category_supermarket/views/product_template.xml +++ b/product_print_category_supermarket/views/product_template.xml @@ -12,6 +12,7 @@ + diff --git a/product_print_category_supermarket/views/report_pricetag_normal.xml b/product_print_category_supermarket/views/report_pricetag_normal.xml index 366bcae..66a025e 100644 --- a/product_print_category_supermarket/views/report_pricetag_normal.xml +++ b/product_print_category_supermarket/views/report_pricetag_normal.xml @@ -2,91 +2,89 @@