How to increase the width of a SharePoint Online List column in a List WebPart

It’s not recommend to create or add ungoverned code on modern SharePoint pages, you need to get started with SPFx:

You could consider using json formatting as shown below to increase the width of list column:

  "$schema": "",
  "elmType": "div",
  "txtContent": "@currentField",
  "style": {
    "color": "green",
    "width": "300px"


enter image description here