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

fix(tables): fix tables overflowing divs and unaligned borders #160

Merged
merged 3 commits into from
May 24, 2021

Conversation

billhimmelsbach
Copy link
Contributor

Fixes CX-179

🧰 Changes

Separated the linting/sorting changes into a separate commit for easier review:
Content changes commit:
8134338

Just linting and sorting fixes commit:
ba6a949

🧬 QA & Testing

Demo video with audio showing markdown fixes alongside an accompanying fix to be included in the readme repo PR
Added this since it's such a pain and half getting it set up npm link + temp disabling the existing hotfixes in the browser

table-fixes.with.audio.mp4

Fixes CX-179

## 🧰 Changes
- add `overflow: auto` to `.rdmd-table-inner` to allow large tables
to scroll as per the request in:
https://linear.app/readme-io/issue/CX-179/tables-no-longer-scrolling-horizontally
- remove the `:after` border and replace it with a border applied
directly to the table (also, nests `:first-child` CSS rules under
the new `table` rule)
- sort CSS properties and lints CSS (going to make into separate commit
for easier review)

## 🧬 QA & Testing
- Do long tables with multiple columns that were built with the table
widget now show correctly:
  - stay inside their containing div
  - don't appear to have extra columns
  - don't appear to have a line through the first overflow column
  (see video in https://linear.app/readme-io/issue/CX-179/tables-no-longer-scrolling-horizontally)
@kellyjosephprice kellyjosephprice temporarily deployed to markdown-pr-160 May 22, 2021 00:38 Inactive
@billhimmelsbach
Copy link
Contributor Author

billhimmelsbach commented May 22, 2021

Here are the changes that will be included in the main ReadMe repo to fix the tables popping out of their divs at iPad widths. 👍

EDIT: Put up a PR just to show those small changes: https://github.com/readmeio/readme/pull/4463/files

Copy link
Contributor

@rafegoldberg rafegoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.

components/Table/style.scss Show resolved Hide resolved
components/Table/style.scss Outdated Show resolved Hide resolved
@kellyjosephprice kellyjosephprice temporarily deployed to markdown-pr-160 May 23, 2021 04:22 Inactive
@billhimmelsbach billhimmelsbach merged commit aa5fc94 into next May 24, 2021
@billhimmelsbach billhimmelsbach deleted the fix/table-borders branch May 24, 2021 12:47
rafegoldberg pushed a commit that referenced this pull request May 24, 2021
## Version 6.27.1-next.2

### 🛠 Fixes & Updates

* **tables:** fix tables overflowing divs and unaligned borders ([#160](#160)) ([aa5fc94](aa5fc94))

<!--SKIP CI-->
@rafegoldberg
Copy link
Contributor

This PR was released!

🚀 Changes included in v6.27.1-next.2

rafegoldberg pushed a commit that referenced this pull request May 24, 2021
## Version 6.27.1

### 🛠 Fixes & Updates

* **image:** filter null magic blocks ([#158](#158)) ([603e0b5](603e0b5))
* fix release (not all masters are mains) ([0f5a8e9](0f5a8e9))
* fix release branch ([345e44f](345e44f))
* **tables:** fix tables overflowing divs and unaligned borders ([#160](#160)) ([aa5fc94](aa5fc94))
* trigger release ([b7349c2](b7349c2))

<!--SKIP CI-->
@rafegoldberg
Copy link
Contributor

This PR was released!

🚀 Changes included in v6.27.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants