Skip to content

Commit

Permalink
[SPARK-46464][DOC] Fix the scroll issue of tables when overflow
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

https://spark.apache.org/docs/3.4.1/running-on-kubernetes.html#spark-properties
https://spark.apache.org/docs/latest/running-on-kubernetes.html#spark-properties

As listed above, the doc content in 3.5.0 cannot scroll horizontally. Users can only see the rest of its content when a table overflows if they zoom out as much as possible, resulting in hard-to-read minor characters.

This PR changes the HTML body overflow-x from hidden to auto to enable the underlying table to scroll horizontally.

### Why are the changes needed?

Fix documentation

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

#### Before
![image](https://github.com/apache/spark/assets/8326978/437bee91-ab0d-4616-aaaf-f99171dcf9f9)

#### After
![image](https://github.com/apache/spark/assets/8326978/327ed82b-3e14-4a27-be1a-835a7b21c000)

### Was this patch authored or co-authored using generative AI tooling?

no

Closes #44423 from yaooqinn/SPARK-46464.

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
  • Loading branch information
yaooqinn committed Dec 22, 2023
1 parent 6b93153 commit fc7d7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body {
font-style: normal;
font-weight: 400;
overflow-wrap: anywhere;
overflow-x: hidden;
overflow-x: auto;
padding-top: 80px;
padding-bottom: 20px;
}
Expand Down

0 comments on commit fc7d7bc

Please sign in to comment.