From 3e854da99abd05daedfb99368259bad649368203 Mon Sep 17 00:00:00 2001
From: Olivier Auverlot <oauv@duck.com>
Date: Sun, 7 Jan 2024 18:07:53 +0100
Subject: [PATCH 1/2] New 'center' parameter to whether to center the trakcing
 component.

---
 .../sqlpage/migrations/32_tracking_update.sql   | 17 +++++++++++++++++
 sqlpage/templates/tracking.handlebars           |  5 ++---
 2 files changed, 19 insertions(+), 3 deletions(-)
 create mode 100644 examples/official-site/sqlpage/migrations/32_tracking_update.sql

diff --git a/examples/official-site/sqlpage/migrations/32_tracking_update.sql b/examples/official-site/sqlpage/migrations/32_tracking_update.sql
new file mode 100644
index 00000000..13c9a993
--- /dev/null
+++ b/examples/official-site/sqlpage/migrations/32_tracking_update.sql
@@ -0,0 +1,17 @@
+INSERT INTO parameter (
+        component,
+        name,
+        description,
+        type,
+        top_level,
+        optional
+    )
+VALUES (
+        'tracking',
+        'center',
+        'Whether to center the component.',
+        'BOOLEAN',
+        TRUE,
+        TRUE
+    );
+
diff --git a/sqlpage/templates/tracking.handlebars b/sqlpage/templates/tracking.handlebars
index bd2968f7..e8262231 100644
--- a/sqlpage/templates/tracking.handlebars
+++ b/sqlpage/templates/tracking.handlebars
@@ -1,4 +1,4 @@
-<div class="card my-2 col-md-{{default width 12}}">
+<div class="card my-2 col-md-{{default width 12}}{{#if center}} mx-auto{{/if}}">
 	<div class="card-body">
 		<div class="d-flex align-items-center">
 			<div class="subheader">{{title}}</div>
@@ -23,5 +23,4 @@
 			</div>
 		</div>
 	</div>
-</div>
-
+</div>
\ No newline at end of file

From bc01903aba40147e0bef4861ed06eea6f26dfff2 Mon Sep 17 00:00:00 2001
From: Olivier Auverlot <oauv@duck.com>
Date: Mon, 8 Jan 2024 20:50:35 +0100
Subject: [PATCH 2/2] Merge of documentation files about tracking component

---
 .../migrations/28_tracking_component.sql        |  9 +++++++++
 .../sqlpage/migrations/32_tracking_update.sql   | 17 -----------------
 2 files changed, 9 insertions(+), 17 deletions(-)
 delete mode 100644 examples/official-site/sqlpage/migrations/32_tracking_update.sql

diff --git a/examples/official-site/sqlpage/migrations/28_tracking_component.sql b/examples/official-site/sqlpage/migrations/28_tracking_component.sql
index d1088c56..698c61a9 100644
--- a/examples/official-site/sqlpage/migrations/28_tracking_component.sql
+++ b/examples/official-site/sqlpage/migrations/28_tracking_component.sql
@@ -77,7 +77,16 @@ VALUES (
         'TEXT',
         FALSE,
         FALSE
+    ),
+    (
+        'tracking',
+        'center',
+        'Whether to center the component.',
+        'BOOLEAN',
+        TRUE,
+        TRUE
     );
+    
 -- Insert example(s) for the component
 INSERT INTO example(component, description, properties)
 VALUES
diff --git a/examples/official-site/sqlpage/migrations/32_tracking_update.sql b/examples/official-site/sqlpage/migrations/32_tracking_update.sql
deleted file mode 100644
index 13c9a993..00000000
--- a/examples/official-site/sqlpage/migrations/32_tracking_update.sql
+++ /dev/null
@@ -1,17 +0,0 @@
-INSERT INTO parameter (
-        component,
-        name,
-        description,
-        type,
-        top_level,
-        optional
-    )
-VALUES (
-        'tracking',
-        'center',
-        'Whether to center the component.',
-        'BOOLEAN',
-        TRUE,
-        TRUE
-    );
-