Skip to content

Commit

Permalink
pkp/pkp-lib#10902 vertical-align ROR SVG in the middle
Browse files Browse the repository at this point in the history
  • Loading branch information
GaziYucel committed Feb 12, 2025
1 parent bc25181 commit 4ef29cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions plugins/themes/default/styles/objects/monograph_full.less
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
vertical-align: middle;
}
}

.affiliation {
a, span, svg {
display: inline-block;
vertical-align: middle;
}
}
}

.entry_details {
Expand Down
4 changes: 2 additions & 2 deletions templates/frontend/components/authors.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
{/if}
</div>
{if count($author->getAffiliations()) > 0}
<div class="value">
<div class="value affiliation">
{foreach name="affiliations" from=$author->getAffiliations() item="affiliation"}
{$affiliation->getLocalizedName()|escape}
<span>{$affiliation->getLocalizedName()|escape}</span>
{if $affiliation->getRor()}<a href="{$affiliation->getRor()|escape}">{$rorIdIcon}</a>{/if}
{if !$smarty.foreach.affiliations.last}{translate key="common.commaListSeparator"}{/if}
{/foreach}
Expand Down

0 comments on commit 4ef29cb

Please sign in to comment.