Skip to content

Commit

Permalink
left-align note titles
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed May 14, 2020
1 parent 82106bf commit 2a3a290
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Main.elm
Expand Up @@ -648,7 +648,7 @@ viewNavLink activeId now { id, node, updated } =

-- content layout
, Css.property "display" "grid"
, Css.property "grid-template-columns" "20% 80%"
, Css.property "grid-template-columns" "15% 1fr"
, Css.property "grid-template-rows" "auto"
, Css.property "grid-template-areas" "\"date title\""
, Css.property "grid-column-gap" "10px"
Expand Down Expand Up @@ -678,7 +678,11 @@ viewNavLink activeId now { id, node, updated } =
, navigate = UserWantsToOpenNoteWithTitle
, navigateUrl = Route.toString << Route.NodeByTitle
}
[ css [ Css.property "grid-area" "title" ] ]
[ css
[ Css.property "grid-area" "title"
, Css.textAlign Css.left
]
]
(Node.content node)
]
]
Expand Down

0 comments on commit 2a3a290

Please sign in to comment.