Skip to content

Commit

Permalink
Merge pull request DSpace#2755 from 4Science/DURACOM-223
Browse files Browse the repository at this point in the history
Add logo max constraints
  • Loading branch information
tdonohue authored Jan 25, 2024
2 parents 38ae9ce + f82ba8c commit 5b9a98a
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 5b9a98a

Please sign in to comment.