My lightning-datatable has a column that is a button, variant 'base', which causes all rows to be unnecessarily high. Because it is of variant 'base', it is shown as a simpel text link, so the height allocated to it is simply too much. I know that this button is responsible for the height of the row, because omitting it makes the row lower (as I want it to be).
How can I set the maximum height of this button, or of the entire row?
This is the definition of the datatable:
<div class="slds-col slds-p-vertical_xx-small">
<lightning-datatable
key-field="Id"
data={searchResults}
columns={searchResultColumns}
draft-values={draftValues}
oncellchange={handleChangedQuantity}
onrowaction={handleSearchResultRowAction}
hide-checkbox-column="true"
column-widths-mode="auto"
suppress-bottom-bar="true">
</lightning-datatable>
</div>
This is the definition of the column that contains the button:
{ label: data.fields.OnOrder__c.label, fieldName: 'OnOrder__c', type: 'button',
typeAttributes: { name: 'backorders', value: 'backorders', label: { fieldName: 'OnOrder__c' },
variant: 'base', disabled: { fieldName: 'ProductNotOnOrder__c' } },
hideDefaultActions: true }