Responsive UI enhancements for mobile device
This commit is contained in:
committed by
Aditya Chandel
parent
99d43bca1e
commit
60e7ff8403
@@ -140,11 +140,20 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
}
|
||||
|
||||
private openDialog(component: any, header: string, top: string) {
|
||||
const isMobile = window.innerWidth <= 768;
|
||||
this.ref = this.dialogService.open(component, {
|
||||
header,
|
||||
modal: true,
|
||||
closable: true,
|
||||
style: { position: 'absolute', top },
|
||||
style: {
|
||||
position: 'absolute',
|
||||
top,
|
||||
...(isMobile && {
|
||||
width: '90vw',
|
||||
maxWidth: '90vw',
|
||||
minWidth: '90vw',
|
||||
}),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user