Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

fix(datatable): adding the consideration of cell padding #198

Merged
merged 1 commit into from
Sep 11, 2019

Conversation

conglei
Copy link
Contributor

@conglei conglei commented Sep 11, 2019

💔 Breaking Changes

🏆 Enhancements

📜 Documentation

🐛 Bug Fix
Previously when calculating the string width, the cell padding was not considered, which cause the text wrapping issues for certain length of string (e,g., ds column).

This PR is to add the padding width, as well as change the story to demo the result for various length of strings in the table.

Before:

image

After:

image

🏠 Internal

@conglei conglei requested a review from a team as a code owner September 11, 2019 22:04
@codecov
Copy link

codecov bot commented Sep 11, 2019

Codecov Report

Merging #198 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #198   +/-   ##
=======================================
  Coverage   34.25%   34.25%           
=======================================
  Files          12       12           
  Lines         216      216           
  Branches       21       21           
=======================================
  Hits           74       74           
  Misses        132      132           
  Partials       10       10

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 70857a0...df619c9. Read the comment docs.

@netlify
Copy link

netlify bot commented Sep 11, 2019

Deploy preview for superset-ui-plugins ready!

Built with commit df619c9

https://deploy-preview-198--superset-ui-plugins.netlify.com

@conglei conglei merged commit 0f93850 into master Sep 11, 2019
@delete-merged-branch delete-merged-branch bot deleted the conglei_table_padding branch September 11, 2019 23:56
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants