Skip to content

Commit

Permalink
Fixed #9639
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Dec 10, 2020
1 parent 28db1ce commit 0189a8b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/app/components/avatar/avatar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.p-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
font-size: 1rem;
}

.p-avatar.p-avatar-image {
background-color: transparent;
}

.p-avatar-circle {
border-radius: 50%;
}

.p-avatar .p-avatar-icon {
font-size: 1rem;
}

.p-avatar img {
width: 100%;
height: 100%;
}
23 changes: 23 additions & 0 deletions src/app/components/avatar/avatar.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { Avatar } from './avatar';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

describe('Avatar', () => {

let button: Avatar;
let fixture: ComponentFixture<Avatar>;

beforeEach(() => {
TestBed.configureTestingModule({
imports: [
NoopAnimationsModule
],
declarations: [
Avatar
]
});

fixture = TestBed.createComponent(Avatar);
button = fixture.componentInstance;
});
});

0 comments on commit 0189a8b

Please sign in to comment.