Skip to content

Commit

Permalink
Merge pull request #7 from mbStavola/fix-overflow
Browse files Browse the repository at this point in the history
Fix issues with overflow hidden
mbStavola authored Oct 29, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 3576150 + 3ad5b5d commit ef03950
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions render/html/render.go
Original file line number Diff line number Diff line change
@@ -35,14 +35,16 @@ func Render(show types.Show) error {
}

const source = `
<div class="content">
<div class="show">
{{range $i, $slide := .Slides}}
<div class="slide hide" id="slide-{{ $i }}" style="background-color: {{ color $slide.Background }};">
{{range $j, $block := $slide.Blocks}}
<div class="block" id="slide-{{ $i }}-block-{{ $j }}" style="{{ style $block.Style }}">
<span>{{ $block.Words }}</span>
</div>
{{end}}
<div class="content">
{{range $j, $block := $slide.Blocks}}
<div class="block" id="slide-{{ $i }}-block-{{ $j }}" style="{{ style $block.Style }}">
<span>{{ $block.Words }}</span>
</div>
{{end}}
</div>
</div>
{{end}}
</div>
@@ -51,12 +53,17 @@ const source = `
body, html {
margin: 0;
padding: 0;
overflow: hidden;
}
.slide {
width: 100%;
height: 100%;
}
.content {
margin: auto;
width: 90%;
height: 90%;
padding: 2em;
}

0 comments on commit ef03950

Please sign in to comment.