app/helpers/lookbook/application_helper.rb in lookbook-0.2.4 vs app/helpers/lookbook/application_helper.rb in lookbook-0.3.0.beta.0
- old
+ new
@@ -16,9 +16,9 @@
lexer = Rouge::Lexer.find(language)
formatter.format(lexer.lex(source)).html_safe
end
def nav_padding_style(depth)
- "padding-left: calc((#{depth} * 12px) + 0.5rem);"
+ "padding-left: calc((#{depth - 1} * 12px) + 0.5rem);"
end
end
end