You need to sign in to do that
Don't have an account?
Hitesh chaudhari
LWC model Size CSS Issue
I am trying to increase the size LWC model using the following CSS access. This code is placed in the Static resource.
It is increasing my model size but is also impacting all other models where this css hasn't loaded. like record edit model
I want that CSS to work only for mu custom model
customCss.css
It is increasing my model size but is also impacting all other models where this css hasn't loaded. like record edit model
I want that CSS to work only for mu custom model
customCss.css
.slds-modal__container { min-width: 90vw; }
Dear Hitesh chaudhari,
Solution 1: Please make sure you refered this static resource only in a expected component
Solution 2 :
import { loadStyle, loadScript } from 'lightning/platformResourceLoader';
import STATIC_RESOURCE_NAME from '@salesforce/resourceUrl/yourcssFile';
loadStyle(this, STATIC_RESOURCE_NAME).then( () => {
// do whatever you need to do after styles load
} )
Thanks,
Soundar Rajan P.