function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Hitesh chaudhariHitesh 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
.slds-modal__container
 {
  	min-width: 90vw;
 }

Record Edit Model
Soundar Rajan PonpandiSoundar Rajan Ponpandi

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.