Skip to content

Commit 6a1a52c

Browse files
committed
fix: Removed inline styles from chat component
1 parent bafb381 commit 6a1a52c

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

projects/igniteui-angular/chat/src/chat.component.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,7 @@ export type IgxChatOptions = Omit<IgcChatOptions, 'renderers'>;
102102
standalone: true,
103103
changeDetection: ChangeDetectionStrategy.OnPush,
104104
schemas: [CUSTOM_ELEMENTS_SCHEMA],
105-
templateUrl: './chat.component.html',
106-
styles: `
107-
igc-chat {
108-
--igc-chat-height: calc(100vh - 32px);
109-
}
110-
`
105+
templateUrl: './chat.component.html'
111106
})
112107
export class IgxChatComponent implements OnInit, OnDestroy {
113108
//#region Internal state

src/app/chat/chat.sample.scss

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
1-
.cards-wrapper {
2-
display: grid;
3-
grid-template-columns: repeat(2, minmax(340px, 1fr));
4-
justify-items: center;
5-
padding-block-start: 2rem;
6-
gap: 1rem;
7-
}
8-
9-
#igniteui-demo-app .sample-title {
10-
margin-bottom: 0;
11-
justify-self: center;
12-
}
13-
141
#igniteui-demo-app .sample-wrapper {
15-
height: auto;
2+
padding: 0;
163
}
174

18-
#igniteui-demo-app .content {
19-
padding-bottom: 1rem;
20-
}

0 commit comments

Comments
 (0)