Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dune-website
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
23
Issues
23
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Infrastructure
dune-website
Commits
e5004be1
Commit
e5004be1
authored
Dec 04, 2018
by
Christian Engwer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix image height in gallery
parent
8158c0f2
Pipeline
#14875
passed with stage
in 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
single.html
layouts/gallery/single.html
+2
-2
No files found.
layouts/gallery/single.html
View file @
e5004be1
...
...
@@ -6,11 +6,11 @@
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
{{ end }}
{{ $c := $.Scratch.Get "counter" }}
<div
style=
"height:
100%
; width: 100%; text-align: center; white-space: nowrap;"
>
<div
style=
"height:
auto
; width: 100%; text-align: center; white-space: nowrap;"
>
{{ range $img := .Params.image }}
<img
src=
"{{ $img }}"
class=
"figure-img ratio img-responsive img-rounded"
style=
"max-width: calc((100% / {{ $c }}) - 1ex);
max-height:
100%
;
max-height:
calc(50vh)
;
display: inline-block; scale=10;
margin-left: .5ex; margin-right: .5ex;"
alt=
"{{ $.Title }}"
>
{{ end }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment