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:
commit
ea3199d0f3
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue