Skip to main content

Hi Team,

I am using below css code as static resource to increase the height of Quick action(LWC cmp) but it changing the location of popup rather increasing the height. Can someone suggest on how to increase height of quick action?

 

.slds-modal__container{

    height: 80% !important;

    max-height: 120% !important;

}

 

@Ashwin Lightning 

4 个回答
  1. 2024年2月7日 09:36

    @Siva Nanda

    HTmL

    <!-- YourComponent.html -->

    <template>

    <div class="custom-modal-container">

    <!-- your quick action content -->

    </div>

    </template>

    css

    /* YourComponent.css */

    .custom-modal-container .slds-modal__container {

    height: 80vh; /* Using viewport height units may give you better control */

    max-height: 120vh;

    }

    js:

    // YourComponent.js

    renderedCallback() {

    const modalContainer = this.template.querySelector('.slds-modal__container');

    if (modalContainer) {

    modalContainer.style.height = '80vh';

    modalContainer.style.maxHeight = '120vh';

    }

    }

     Using viewport height units may give you better control 

0/9000