Skip to content

Commit

Permalink
Merge pull request #941 from VEuPathDB/site-search-title-truncation
Browse files Browse the repository at this point in the history
Limit site search titles to one line and add title attribute
  • Loading branch information
jernestmyers committed Mar 18, 2024
2 parents feb575e + 78567a8 commit e989633
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@
&--Result {
&Link {
font-size: 1.145em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&DocumentTypePath {
color: #3e3e3e;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,10 @@ function Hit(props: HitProps) {
</span>
)}
{subTitle && (
<div className={cx('--ResultSubTitle')}>
<div
className={cx('--ResultSubTitle')}
title={formatSummaryFieldValue(subTitle)}
>
{formatSummaryFieldValue(subTitle)}
</div>
)}
Expand Down

0 comments on commit e989633

Please sign in to comment.