I am using a custom lightning data table which is used to display records in Inline Edit mode. Everytime the last row's picklist values is hidden underneath data tables border. We have to scroll down to see the values which is pain full user experience. Once the drop down is clicked. I should over lap the menu over the data table or simply increase the row Height or Padding .

I tried to increase the padding in console its working but unable to set the values in the component. Last Row

1 Answer 1


You can do it by importing a static resource with preferred css.


import LightningDatatable from 'lightning/datatable';
import { loadStyle } from 'lightning/platformResourceLoader';
import CustomDatatableResource from '@salesforce/resourceUrl/CustomDatatable'
export default class CustomDataTable extends LightningDatatable {
    hasLoadedStyle = false;
    renderedCallback() {
        if (LightningDatatable.prototype.renderedCallback) { // Run this check to bypass lwc jest error
        if (!this.hasLoadedStyle) {
            this.hasLoadedStyle = true;
                loadStyle(this, CustomDatatableResource),
            ]).then(() => { })


    height: 40px;

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .