diff --git a/templates/admin/wiki.html.twig b/templates/admin/wiki.html.twig
index 9f194894..b556be77 100644
--- a/templates/admin/wiki.html.twig
+++ b/templates/admin/wiki.html.twig
@@ -241,6 +241,12 @@
class="btn btn-sm btn-outline-info" title="Version française">
FR
+ {% else %}
+
+ Traduire
+
{% endif %}
diff --git a/templates/admin/wiki_compare.html.twig b/templates/admin/wiki_compare.html.twig
index 24d744be..88be2304 100644
--- a/templates/admin/wiki_compare.html.twig
+++ b/templates/admin/wiki_compare.html.twig
@@ -21,10 +21,14 @@
padding: 3px;
}
+ .section-title,
.suggestion-before, .suggestion-after {
cursor: pointer;
+ min-width: 80%;
+ display: inline-block;
}
+ .section-title:hover,
.suggestion-before:hover, .suggestion-after:hover {
color: #d1e7dd;
background: #0f5132;
@@ -33,7 +37,6 @@
.suggestion-correction {
color: #0f5132;
background: #d1e7dd;
- background: #ccc;
border-radius: 3px;
padding: 3px;
display: block;
@@ -59,24 +62,29 @@
}
.title-level-2 {
- padding-right: 1.5rem;
+ padding-left: 1.5rem;
+ opacity: 0.8;
}
.title-level-3 {
- padding-right: 2.8rem;
+ padding-left: 2.8rem;
+ opacity: 0.5;
}
.title-level-4 {
- padding-right: 4rem;
+ padding-left: 4rem;
+ opacity: 0.4;
}
.title-level-5 {
- padding-right: 5.2rem;
+ padding-left: 5.2rem;
+ opacity: 0.3;
}
.title-level-6 {
- padding-right: 6.4rem;
+ padding-left: 6.4rem;
font-size: 0.9rem;
+ opacity: 0.2;
}
/* Style for placeholder sections */
@@ -179,7 +187,7 @@
h{{ section.level|default(1) }}
{% if section.title is defined and section.title is not empty %}
- {{ section.title }}
+ {{ section.title }}
{% endif %}
{% endfor %}
@@ -207,7 +215,7 @@
h{{ section.level|default(1) }}
{% if section.title is defined and section.title is not empty %}
- {{ section.title }}
+ {{ section.title }}
{% endif %}
{% endfor %}
@@ -949,7 +957,7 @@
});
// Add click event listeners to all suggestion-correction elements
- document.querySelectorAll('.suggestion-correction, .suggestion-before, .suggestion-after').forEach(function (element) {
+ document.querySelectorAll('.suggestion-correction, .suggestion-before, .suggestion-after, .section-title').forEach(function (element) {
element.addEventListener('click', function () {
// Get the text content to copy
const content = this.textContent.trim();