Skip to content

Commit 5b9a98a

Browse files
authored
Merge pull request DSpace#2755 from 4Science/DURACOM-223
Add logo max constraints
2 parents 38ae9ce + f82ba8c commit 5b9a98a

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div *ngIf="logo" class="dso-logo mb-3">
2-
<img [src]="logo._links.content.href" class="img-fluid" [attr.alt]="alternateText ? alternateText : null" (error)="errorHandler($event)"/>
2+
<img [src]="logo._links.content.href" class="w-100 img-fluid" [attr.alt]="alternateText ? alternateText : null" (error)="errorHandler($event)"/>
33
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
img {
2+
max-width: var(--ds-comcol-logo-max-width);
3+
max-height: var(--ds-comcol-logo-max-height);
4+
}

src/styles/_custom_variables.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,7 @@
102102
--ds-dso-edit-lang-width: 90px;
103103
--ds-dso-edit-actions-width: 173px;
104104
--ds-dso-edit-virtual-tooltip-min-width: 300px;
105+
106+
--ds-comcol-logo-max-width: 500px;
107+
--ds-comcol-logo-max-height: 500px;
105108
}

0 commit comments

Comments
 (0)