Skip to main content
Siva Nanda (StartUp) 님이 lwc developer group에 질문했습니다

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일 오전 9: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