diff --git a/stylesheets/components/Lightbox.scss b/stylesheets/components/Lightbox.scss index e79e6abcd..3a7b18eda 100644 --- a/stylesheets/components/Lightbox.scss +++ b/stylesheets/components/Lightbox.scss @@ -3,7 +3,7 @@ .Lightbox { &__container { - background-color: $color-gray-90; + background-color: $color-black; bottom: 0; left: 0; position: absolute; @@ -52,6 +52,10 @@ } } + &__thumbnails_placeholder { + height: 44px; + } + &__thumbnail { @include button-reset; position: relative; @@ -210,10 +214,11 @@ &__header { align-items: center; display: flex; - height: 56px; + height: 52px; justify-content: space-between; - margin-top: calc(12px + var(--title-bar-drag-area-height)); - min-height: 56px; + margin-top: var(--title-bar-drag-area-height); + margin-bottom: 16px; + min-height: 52px; opacity: 1; padding: 0 16px; transition: opacity 150ms cubic-bezier(0.17, 0.17, 0, 1); @@ -239,7 +244,7 @@ &__footer { opacity: 1; - padding: 20px 16px; + padding: 16px 16px 24px 16px; transition: opacity 150ms cubic-bezier(0.17, 0.17, 0, 1); } @@ -250,6 +255,17 @@ } } + &__container--has-controls { + .Lightbox__nav-next, + .Lightbox__nav-prev { + // Give some room for ); - hasFooter = false; + hasControls = true; } else if (isUnsupportedImageType || isUnsupportedVideoType) { content = ( - ))} - + onSelectAttachment(index); + }} + > + {item.thumbnailObjectUrl ? ( + {i18n('lightboxImageAlt')} + ) : ( +
+ )} + + ))}
- )} - - ) : null} + + ) : ( +
+ )} +
, root