From d65f4fdfe92508c3b3b325b63c4b1d3b8dff5165 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?=
 =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?=
 <erik@darapsa.co.id>
Date: Fri, 21 Jul 2023 16:54:54 +0800
Subject: Fix order summary items (especially) outer margins

---
 Shop/Checkout/RightSidebar/OrderSummary.ui.qml | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

(limited to 'Shop/Checkout/RightSidebar')

diff --git a/Shop/Checkout/RightSidebar/OrderSummary.ui.qml b/Shop/Checkout/RightSidebar/OrderSummary.ui.qml
index bf9ba8d..7913ea1 100644
--- a/Shop/Checkout/RightSidebar/OrderSummary.ui.qml
+++ b/Shop/Checkout/RightSidebar/OrderSummary.ui.qml
@@ -20,22 +20,22 @@ ColumnLayout {
 		wrapMode: Label.Wrap
 		Bootstrap.heading: 4
 		Layout.fillWidth: true
-		Layout.rightMargin: 16
-		Layout.leftMargin: 16
-		Layout.topMargin: 16
+		Layout.margins: 25.6
 	}
 
 	ListView {
 		id: coupon
 		Layout.fillWidth: true
-		Layout.margins: 16
+		Layout.leftMargin: 25.6
+		Layout.rightMargin: 25.6
+		Layout.bottomMargin: 16
 		interactive: false
 		implicitHeight: 87
 		model: 1
 		delegate: ColumnLayout {
 			Bootstrap.mode: coupon.Bootstrap.mode
 			width: coupon.width
-			spacing: 16
+			spacing: 8
 
 			Item {
 				Layout.fillWidth: true
@@ -120,6 +120,8 @@ ColumnLayout {
 		id: courseItems
 		interactive: false
 		Layout.fillWidth: true
+		Layout.leftMargin: 25.6
+		Layout.rightMargin: 25.6
 		implicitHeight: count
 				* (width * 400 / 533
 					+ (width < 362 ? 37.5 : 18.75)
@@ -147,6 +149,8 @@ ColumnLayout {
 	Rectangle {
 		Layout.fillWidth: true
 		Layout.topMargin: 16
+		Layout.leftMargin: 25.6
+		Layout.rightMargin: 25.6
 		Layout.bottomMargin: 16
 		height: 1
 		border {
@@ -156,6 +160,8 @@ ColumnLayout {
 	}
 
 	ColumnLayout {
+		Layout.leftMargin: 25.6
+		Layout.rightMargin: 25.6
 
 		Item {
 			Layout.fillWidth: true
@@ -244,7 +250,9 @@ ColumnLayout {
 
 	Success {
 		id: placeOrder
-		Layout.margins: 16
+		Layout.leftMargin: 25.6
+		Layout.rightMargin: 25.6
+		Layout.bottomMargin: 25.6
 		Layout.fillWidth: true
 		text: qsTr("Place Order")
 		implicitHeight: 36
-- 
cgit v1.2.3