You need to sign in to do that
Don't have an account?
function readOnly(count){ }
Apex Code Development (90768)
General Development (55146)
Visualforce Development (37251)
Lightning (18265)
APIs and Integration (17146)
Trailhead (11680)
Formulas & Validation Rules Discussion (11337)
Other Salesforce Applications (8116)
Jobs Board (6655)
Force.com Sites & Site.com (4842)
Mobile (2694)
You need to sign in to do that
Don't have an account?
Hello Hiu Tung ,
To ensure that your Aura lighning component has same layout as of Mobile you can follow certain specifications :
Use a Responsive Design : Responsive design enables your app page or website to scale elegantly across screen sizes. It uses fluid grids and media queries to display the right layout for different screens. Responsive design improves app maintainability and reliability, while future proofing for different browsers and platforms.
Reference : https://www.lightningdesignsystem.com/Reference : https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.mobile_layout
You can use SLDS classes to create a responsive layout for a Lightning Component that displays a custom object:
By using the slds-wrap class, the grid layout will wrap to the next row on smaller screens, creating a responsive layout that works well on mobile devices.
If it helps please mark this as Best Answer.
Thank you.
All Answers
Hello Hiu Tung ,
To ensure that your Aura lighning component has same layout as of Mobile you can follow certain specifications :
Use a Responsive Design : Responsive design enables your app page or website to scale elegantly across screen sizes. It uses fluid grids and media queries to display the right layout for different screens. Responsive design improves app maintainability and reliability, while future proofing for different browsers and platforms.
Reference : https://www.lightningdesignsystem.com/Reference : https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.mobile_layout
You can use SLDS classes to create a responsive layout for a Lightning Component that displays a custom object:
By using the slds-wrap class, the grid layout will wrap to the next row on smaller screens, creating a responsive layout that works well on mobile devices.
If it helps please mark this as Best Answer.
Thank you.
Thanks this helped. However, the mobile page layout doesn't match what I see on the lightning page layout for phone. Is there a reason why this is happening?