Skip to content

Commit a179dec

Browse files
authored
fix: add medium size for modal (#335)
1 parent 43d05ee commit a179dec

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

projects/components/src/modal/modal-container.component.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88
padding: 18px;
99
background-color: white;
1010
z-index: 1;
11+
display: flex;
12+
flex-direction: column;
1113

1214
&.modal-size-small {
1315
height: 365px;
1416
width: 420px;
1517
}
1618

17-
display: flex;
18-
flex-direction: column;
19+
&.modal-size-medium {
20+
height: 720px;
21+
width: 640px;
22+
}
1923

2024
.header {
2125
display: flex;

projects/components/src/modal/modal.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export interface ModalConfig<TData = unknown> {
1010
}
1111

1212
export const enum ModalSize {
13-
Small = 'small'
13+
Small = 'small',
14+
Medium = 'medium'
1415
}
1516

1617
export const MODAL_DATA = new InjectionToken<unknown>('MODAL_DATA');

0 commit comments

Comments
 (0)