Skip to content

Commit

Permalink
add logo max costraints
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoMolinaro committed Jan 19, 2024
1 parent 55c191e commit 32e3141
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">
<div *ngIf="logo" class="dso-logo mb-3 logo-container">
<img [src]="logo._links.content.href" class="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 @@
.logo-container {
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 32e3141

Please sign in to comment.