Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70446

Ionic modal custom css

$
0
0

@lakshankarunathilake wrote:

I have created modal using the modal controller and I want to expand the width in larger screens such as desktops and laptops. I have to keep it same for the mobile devices

I have created this css class

.book-view-modal {
.modal-wrapper {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
}
}

the modal is

const modal = await this.modalController.create({
component: BookViewComponent,
componentProps: {
bookName: ‘dfdsfdsf’,
id: ‘dafsdfsd’
},
cssClass: ‘book-view-modal’
});
modal.present();

But still the size is not changed. Can somebody help

Thanks in advance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70446

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>