Merge pull request #8952 from mfo/fix-title-size

ETQ usager, je trouve que les titres de section sont trop fort en graisse de caractère
This commit is contained in:
Colin Darie 2023-04-27 07:56:32 +00:00 committed by GitHub
commit ea3199d0f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ class EditableChamp::HeaderSectionComponent < ApplicationComponent
end
def level
@champ.level
@champ.level + 1 # skip one heading level
end
def libelle
@ -20,6 +20,10 @@ class EditableChamp::HeaderSectionComponent < ApplicationComponent
end
def tag_for_depth
"h#{level + 1}"
if level <= 6
"h#{level}"
else
"p"
end
end
end