Skip to content

Commit

Permalink
Feature/2227/org logo should not be circle (#594)
Browse files Browse the repository at this point in the history
ga4gh/docksotre#2227
Org Logo is now a square/rectangle on org and collection page.
  • Loading branch information
NatalieEO authored Mar 20, 2019
1 parent 8618d48 commit 6bfa1f0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cypress/integration/group3/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('Dockstore Organizations', () => {
cy.contains('Basement');
cy.contains('[email protected]');
cy.contains('No collections found');
cy.get('.img-circle').should('have.attr', 'src').should('include', '../../../assets/images/dockstore/PlaceholderLC.png');
cy.get('.orgLogo').should('have.attr', 'src').should('include', '../../../assets/images/dockstore/PlaceholderLC.png');
});
it('be able to edit organization', () => {
cy.get('#editOrgInfo').should('be.visible').click();
Expand Down Expand Up @@ -105,7 +105,7 @@ describe('Dockstore Organizations', () => {
cy.contains('https://www.google.com');
cy.contains('UCSC Basement');
cy.contains('[email protected]');
cy.get('.img-circle').should('have.attr', 'src').should('include', 'https://www.gravatar.com/avatar/000?d=https://res.cloudinary.com/hellofresh/image/upload/f_auto,fl_lossy,q_auto,w_640/v1/hellofresh_s3/image/554a3abff8b25e1d268b456d.png');
cy.get('.orgLogo').should('have.attr', 'src').should('include', 'https://www.gravatar.com/avatar/000?d=https://res.cloudinary.com/hellofresh/image/upload/f_auto,fl_lossy,q_auto,w_640/v1/hellofresh_s3/image/554a3abff8b25e1d268b456d.png');
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/app/organizations/collection/collection.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<div fxLayout="row" fxLayout.lt-sm="column" fxLayoutGap="10px">
<div>
<img [src]="(gravatarUrl$ | async ) || '../../../assets/images/dockstore/PlaceholderLC.png'" class="img-circle" height="150" width="150">
<img [src]="(gravatarUrl$ | async ) || '../../../assets/images/dockstore/PlaceholderLC.png'" class="orgLogo">
</div>
<div>
<mat-card-header>
Expand Down
2 changes: 1 addition & 1 deletion src/app/organizations/collection/collection.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface DialogData {
@Component({
selector: 'collection',
templateUrl: './collection.component.html',
styleUrls: ['./collection.component.scss']
styleUrls: ['./collection.component.scss', '../organization/organization.component.scss']
})
export class CollectionComponent implements OnInit {
collection$: Observable<Collection>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<mat-card fxFlex class="my-3">
<div fxLayout="row" fxLayout.lt-sm="column" fxLayoutGap="10px">
<div>
<img [src]="(gravatarUrl$ | async ) || '../../../assets/images/dockstore/PlaceholderLC.png'" class="img-circle" height="150" width="150">
<img [src]="(gravatarUrl$ | async ) || '../../../assets/images/dockstore/PlaceholderLC.png'" class = "orgLogo">
</div>
<div>
<mat-card-header>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.orgLogo {
max-height: 150px;
max-width: 200px;
}

0 comments on commit 6bfa1f0

Please sign in to comment.