Skip to content

Commit

Permalink
Merge pull request #1521 from CuBoulder/issue/1501
Browse files Browse the repository at this point in the history
Article Feature: Fixes aspect ratio for Wide images
  • Loading branch information
jcsparks authored and web-flow committed Dec 2, 2024
2 parents 66ff259 + b969828 commit f6790c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- ### Article Feature: Fixes aspect ratio for Wide images
Previously Article Feature Blocks with the Image Size set to `Wide (slider image style)` would come through as 3:2 aspect ratio rather than 16:9, which is used for the slider.

Resolves https://github.com/CuBoulder/tiamat-theme/issues/1501
---

- ### Update ucb-brand-bar.css
Adding consistent `max-width` and `width` to the logo's link container allows for the SVG to scale properly throughout all browsers.

Expand Down
5 changes: 5 additions & 0 deletions css/block/ucb-article-feature-block.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
max-width: 100%;
}

.feature-img-wide{
aspect-ratio: 16 / 9;
object-fit: cover;
}

.ucb-stacked-secondary-container > .ucb-article-card {
margin-bottom: 0px;
border-bottom: none;
Expand Down

0 comments on commit f6790c4

Please sign in to comment.