From ac1c46bd6cb8f79cd47ee0fe072175c1da363adf Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 24 Jul 2022 09:24:14 +0200 Subject: Fixed lightbox misalignment --- tpl/objects/lightbox.pug | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/lightbox.pug b/tpl/objects/lightbox.pug index 5ba8c57..faf7fa2 100644 --- a/tpl/objects/lightbox.pug +++ b/tpl/objects/lightbox.pug @@ -2,12 +2,14 @@ include icon.pug mixin lightbox(images) .o-lightbox - header.o-lightbox__header.s-colored-links - block - +action-button(round=true quiet=true icon='x' class='o-lightbox__close-btn') + header.o-lightbox__header + .s-colored-links + block + +action-button(round=true quiet=true icon='x' class='o-lightbox__close-btn') img.o-lightbox__img(src=images[0]) - +action-button(round=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev') - +action-button(round=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next') + if images.length > 1 + +action-button(round=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev') + +action-button(round=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next') .o-lightbox__thumbnails each img, i in images - classes = i === 0 ? 'is-selected' : '' -- cgit v1.2.3-70-g09d2