Skip to content

Commit

Permalink
Update nimiSlides.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
quimt authored Nov 22, 2023
1 parent d6acf3f commit 7df6c3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nimiSlides.nim
Original file line number Diff line number Diff line change
Expand Up @@ -550,15 +550,15 @@ template columns*(columnGap: float, body: untyped) =
body

template columns*(body: untyped) =
columns(0.0,body)
columns(1.0,body)

template adaptiveColumns*(columnGap: float, body: untyped) =
nbRawHtml: """<div style="display: grid; grid-auto-flow: column; overflow-wrap: break-word;""" & $columnGap & """em;">"""
body
nbRawHtml: "</div>"

template adaptiveColumns*(body: untyped) =
adaptiveColumns(0.0,body)
adaptiveColumns(1.0,body)

template column*(bodyInner: untyped) =
## column should always be used inside a `columns` block
Expand Down

0 comments on commit 7df6c3f

Please sign in to comment.