Skip to content

Commit

Permalink
HPC-9104: Fix article image size and display for documents in the res…
Browse files Browse the repository at this point in the history
…ults
  • Loading branch information
berliner committed Oct 18, 2023
1 parent 61cd557 commit 52c5878
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion html/themes/custom/common_design_subtheme/css/styles.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ main#main-content {

.ghi-search-thumbnail {
width: 100%;
// min-width: 320px;

& > field--type-image {
width: 100%;
min-width: auto;
}

@include tablet {
width: calc(20% - 2.25rem);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
]
%}
<article{{ attributes.addClass(classes) }}>
{{ content.field_image }}
<div class="ghi-search-thumbnail">
{{ content.field_image }}
</div>
<div class="gho-related-article__content">
<h3{{ title_attributes.addClass('gho-related-article__title') }}>
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
Expand Down

0 comments on commit 52c5878

Please sign in to comment.