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
Michael SchröderMichael Schröder 

Disable mobile component?

Hello,

We have created a community with aura components using the lightning:path component. Now we are faced with the task of optimizing the views for smaller desktop devices, such as HD (1366x768px).

But for some unknown reason, Salesforce adds the HTML class runtime_sales_pathassistantPathAssistantCardMobile to the component when viewing it at 1366px width. Is there any way to disable this behaviour? And why would SF consider HD resolution to be "mobile"? Since even in the LDS docs, 1024px would be considered "large": https://www.lightningdesignsystem.com/utilities/grid/#Responsive-Layout-Options

Thanks.
ShirishaShirisha (Salesforce Developers) 
Hi Michael,

Greetings!

I would suggest you to make the responsive page using the SLDS which will be compatible based on the device.

Please go through the sample code in the below document:

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/vf_dev_best_practices_slds_responsive.htm

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri