-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-46464][DOC] Fix the scroll issue of tables when overflow #44423
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
Changes from 2 commits
652b87f
8fe81d0
8458e39
309adcc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1112,11 +1112,13 @@ table { | |
| width: 100%; | ||
| overflow-wrap: normal; | ||
| border-collapse: collapse; /* Ensures that the borders collapse into a single border */ | ||
| word-break: normal; | ||
|
||
| } | ||
|
|
||
| table th, table td { | ||
| border: 1px solid #cccccc; /* Adds a border to each table header and data cell */ | ||
| padding: 6px 13px; /* Optional: Adds padding inside each cell for better readability */ | ||
| max-width: 895px; /* Adjusted to `max-width(914px) of .content - padding` to avoid hidden content from a single cell */ | ||
|
||
| } | ||
|
|
||
| table tr { | ||
|
|
@@ -1126,3 +1128,7 @@ table tr { | |
| table tr:nth-child(2n) { | ||
| background-color: #F1F4F5; /* Sets a different background color for even rows */ | ||
| } | ||
|
|
||
| .table-wrapper { | ||
| overflow-x: auto; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a CSS expert, but instead of adding a new
divall over the place, couldn't we just add the appropriate styling in the main CSS file directly to alltableelements?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gettalong/kramdown#69