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
Arut JothiArut Jothi 

Width adjustment or Defining Width for Lightning actions

When creating a lighting action (with action type as Custom Visualforce or Lightning Component), there is no provision to specify the width (of the modal pop-up). While this can be achived by including custom CSS to the class 'slds-modal__container', I'm not sure if that's the right way to go. Im assuming here that Salesforce or Lightning platform first defines width of the modal pop-up and then resizes contents within according the to the outer HTML element width. If we apply custom CSS, then it will most possibly act on the Outer HTML but not on all of the inner content. is my assumption correct? If yes, then what is the right way to achieve modifying the modal pop-up width?
GhanshyamChoudhariGhanshyamChoudhari
Hi,
For lightning action, you cannot define custom width/height or CSS for the Model popup.

Mark as best answer if it helps you.
Thanks,
Ghanshyam Choudhari
Arut JothiArut Jothi
@GhanshyamChoudhari, That's not actually true. Height can be defined while creating or editing the custom action but width cannot be. CSS can be used to do both, but I'm quite not sure if there is any right approach.
GhanshyamChoudhariGhanshyamChoudhari
@Arun I agreed.