Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PulkitBanta opened this issue Mar 15, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@PulkitBanta
Copy link
Collaborator

PulkitBanta commented Mar 15, 2022

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 PulkitBanta added the bug Something isn't working label Mar 15, 2022
@PulkitBanta PulkitBanta changed the title bug: table column width is calculated only based on the data bug: table column width is calculated only based on the row data Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant