fix: fix navbar centering

main
Xubai Wang 2022-02-23 23:09:10 +08:00
parent 28bb2abe40
commit a5dfba5f1c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ open Lean
open scoped DocGen4.Jsx open scoped DocGen4.Jsx
def moduleListFile (file : Name) : HtmlM Html := do def moduleListFile (file : Name) : HtmlM Html := do
pure <div "class"="nav_link" [if (← getCurrentName) == file then #[("visible", "")] else #[]]> pure <div «class»={if (← getCurrentName) == file then "nav_link visible" else "nav_link"}>
<a href={← moduleNameToLink file}>{file.toString}</a> <a href={← moduleNameToLink file}>{file.toString}</a>
</div> </div>