Skip to content

Commit 99a7c6e

Browse files
Correction du bloc de partage en page d'accueil (#1829)
* Add horizontal centering to share/embed component * Split ReusableContent title field into separate migration
1 parent a0559de commit 99a7c6e

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

qfdmd/migrations/0050_bonus_produitpage_disable_bonus_inheritance_and_more.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,11 +1897,6 @@ class Migration(migrations.Migration):
18971897
verbose_name="Corps de texte",
18981898
),
18991899
),
1900-
migrations.AlterField(
1901-
model_name="reusablecontent",
1902-
name="title",
1903-
field=models.CharField(unique=True),
1904-
),
19051900
migrations.AddField(
19061901
model_name="produitpage",
19071902
name="bonus",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.4 on 2025-07-31 08:10
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("qfdmd", "0050_bonus_produitpage_disable_bonus_inheritance_and_more"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="reusablecontent",
15+
name="title",
16+
field=models.CharField(unique=True),
17+
),
18+
]

templates/pages/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{# suggestion #}
2222
{% include "components/suggestions/suggestions.html" with suggestions=object_list|as_tuple %}
2323
{% with heading=ASSISTANT.faites_decouvrir_ce_site %}
24-
{% include "snippets/share_and_embed.html" %}
24+
{% include "snippets/share_and_embed.html" with extra_classes="qf-mx-auto" %}
2525
{% endwith %}
2626

2727
<div class="qf-max-w-3xl qf-mx-auto">

templates/snippets/share_and_embed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class= "qf-max-w-2xl qf-ml-auto qf-text-center {{ extra_classes }}">
1+
<div class= "qf-max-w-2xl qf-text-center {{ extra_classes }}">
22
{% if heading %}
33
<h2 class="qf-text-lg">
44
{{ heading }}

0 commit comments

Comments
 (0)