Skip to content

Commit

Permalink
Merge branch 'faculty-result-thumbs' into rc-v3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cjg89 committed Dec 8, 2021
2 parents 8acaef5 + 738ae54 commit f8108af
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 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" alt="" width="{{thumbnails.thumbnail.width}}" height="{{thumbnails.thumbnail.height}}">
<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}}">
</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.

23 changes: 14 additions & 9 deletions template-faculty-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,20 @@
<div class="col-lg-8 col-xl-7">
<div class="row no-gutters position-relative w-100">
<div class="col-2 pr-3 pr-sm-4">
<?php
echo get_person_thumbnail(
$post,
'medium',
array(
'class' => 'w-100 h-auto'
)
);
?>
<div class="embed-responsive embed-responsive-1by1 media-background-container rounded-circle">
<?php
echo get_person_thumbnail(
$post,
'thumbnail',
array(
'class' => 'media-background object-fit-cover',
'alt' => '',
'style' => 'object-position: 50% 25%;',
'data-object-position' => '50% 25%'
)
);
?>
</div>
</div>
<div class="col-10 col-lg-9 align-self-center position-static py-2 py-lg-3">
<h2 class="h5 mb-0">
Expand Down
6 changes: 4 additions & 2 deletions template-parts/layout/header/content-person.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
$obj,
'medium',
array(
'class' => 'media-background object-fit-cover',
'alt' => ''
'class' => 'media-background object-fit-cover',
'alt' => '',
'style' => 'object-position: 50% 25%;',
'data-object-position' => '50% 25%'
)
);
?>
Expand Down

0 comments on commit f8108af

Please sign in to comment.