Skip to content

Commit

Permalink
object-position adjustments for faculty thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
cjg89 committed Dec 8, 2021
1 parent f8108af commit 35ce961
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/js/faculty-search-typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
suggestion: Handlebars.compile(`
<div class="d-flex flex-row mb-0">
<div class="media-background-container rounded-circle mr-2 suggestion-image">
<img src="{{thumbnails.thumbnail.src}}" class="media-background object-fit-cover" style="object-position: 50% 25%;" data-object-position="50% 25%" alt="" width="{{thumbnails.thumbnail.width}}" height="{{thumbnails.thumbnail.height}}">
<img src="{{thumbnails.thumbnail.src}}" class="media-background object-fit-cover" style="object-position: 50% 0%;" data-object-position="50% 0%" alt="" width="{{thumbnails.thumbnail.width}}" height="{{thumbnails.thumbnail.height}}">
</div>
<div class="align-self-center suggestion-text">
<span class="d-block">{{title.rendered}}</span>
Expand Down
2 changes: 1 addition & 1 deletion static/js/faculty-search-typeahead.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions template-faculty-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@
array(
'class' => 'media-background object-fit-cover',
'alt' => '',
'style' => 'object-position: 50% 25%;',
'data-object-position' => '50% 25%'
'style' => 'object-position: 50% 0%;',
'data-object-position' => '50% 0%'
)
);
?>
Expand Down
4 changes: 2 additions & 2 deletions template-parts/layout/header/content-person.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
array(
'class' => 'media-background object-fit-cover',
'alt' => '',
'style' => 'object-position: 50% 25%;',
'data-object-position' => '50% 25%'
'style' => 'object-position: 50% 0%;',
'data-object-position' => '50% 0%'
)
);
?>
Expand Down

0 comments on commit 35ce961

Please sign in to comment.