Skip to content

Commit

Permalink
Merge pull request #2773 from DSpace/backport-2755-to-dspace-7_x
Browse files Browse the repository at this point in the history
[Port dspace-7_x] Add logo max constraints
  • Loading branch information
tdonohue authored Jan 25, 2024
2 parents 5d700d5 + d4493cb commit 67fc005
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div *ngIf="logo" class="dso-logo mb-3">
<img [src]="logo._links.content.href" class="img-fluid" [attr.alt]="alternateText ? alternateText : null" (error)="errorHandler($event)"/>
<img [src]="logo._links.content.href" class="w-100 img-fluid" [attr.alt]="alternateText ? alternateText : null" (error)="errorHandler($event)"/>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
img {
max-width: var(--ds-comcol-logo-max-width);
max-height: var(--ds-comcol-logo-max-height);
}
3 changes: 3 additions & 0 deletions src/styles/_custom_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,7 @@
--ds-dso-edit-lang-width: 90px;
--ds-dso-edit-actions-width: 173px;
--ds-dso-edit-virtual-tooltip-min-width: 300px;

--ds-comcol-logo-max-width: 500px;
--ds-comcol-logo-max-height: 500px;
}

0 comments on commit 67fc005

Please sign in to comment.