Skip to content

Commit

Permalink
Merge pull request #169 from devgeniem/TMS-1021
Browse files Browse the repository at this point in the history
TMS-1021: Remove image carousel modal max-height
  • Loading branch information
eebbi authored Mar 26, 2024
2 parents 1e68559 + ebc8b31 commit 60196da
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.9.7] - 2024-03-26

- TMS-1021: Remove image carousel modal max-height

## [1.9.6] - 2024-03-18

- TMS-1017: Add image alt-text to imported news single-article
Expand Down
27 changes: 11 additions & 16 deletions assets/styles/layouts/_image-carousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
display: inline-block;
overflow: hidden;
max-width: 70vw;

img {
object-fit: contain;
clip-path: circle(closest-side);
Expand All @@ -36,11 +36,11 @@
}


&__modal-control{
&__modal-control {

&.slick-arrow {
background-color: transparent;
border:none;
border: none;

.icon {
fill: $white;
Expand All @@ -64,7 +64,7 @@
right: 0;
}
}

.image-carousel__item {
height: 80vh;
display: flex !important;
Expand All @@ -77,33 +77,28 @@
width: auto;
}
}
.img-wrapper{
flex:2 1 auto;

.img-wrapper {
flex: 2 1 auto;
max-height: 100%;
height:auto;
height: auto;
min-width: 0;
min-height: 50%;
display: flex;
align-items: flex-end;

img{
img {
max-width: 100%;
max-height: 100% !important;
min-height: 100px;
object-fit: contain;
}
}

.image-block__meta {
flex:1 1 auto;
flex: 1 1 auto;
width: 100%;
}


}


}

.slick-track .modal-trigger:focus {
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Theme Name: TMS Theme Taidemuseo
* Description: Tampere Multisite Taidemuseo Theme
* Version: 1.9.6
* Version: 1.9.7
* Author: Geniem
* Author URI: https://geniem.fi
* Template: tms-theme-base
Expand Down

0 comments on commit 60196da

Please sign in to comment.