medly-components icon indicating copy to clipboard operation
medly-components copied to clipboard

bug: table column width is calculated only based on the row data

Open PulkitBanta opened this issue 2 years ago • 0 comments

Describe the bug

The width of the table column is calculated only based on the data for the row and because of that

To Reproduce

Provide step-by-step instructions to reproduce the bug:

  1. Create a table with medly components, the data should have value with less characters than the header for the column.
  2. See error

Expected behavior

Table column width should consider minimum of header characters / data & then only if fitContent prop is true the column width should consider data for the row and recalculate accordingly

Screenshots

Screenshot 2022-05-19 at 11 05 14 AM

Package versions

  • @medly-components/core: "^6.4.3"
  • @medly-components/forms: "^2.1.26"
  • @medly-components/layout: "^3.1.11"
  • @medly-components/loaders: "^1.6.7"
  • @medly-components/theme: "^5.0.0"
  • @medly-components/utils: "^2.1.1"

PulkitBanta avatar Mar 15 '22 06:03 PulkitBanta