Skip to content

DOC fix align table in API doc page #28600

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

Merged
merged 2 commits into from
Mar 9, 2024

Conversation

glemaitre
Copy link
Member

In #28417, I made a change and remove display: block; but apparently it has a detrimental effect on the API pages.

I'm reverting this change. However, we need to come with a fix to center the table in the about page.

Copy link

github-actions bot commented Mar 8, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 55cd9d2. Link to the linter CI: here

@glemaitre
Copy link
Member Author

@thomasjpfan do you know a way in CSS in which we could center the table containing the sponsor logos without breaking other stuff, meaning the following table:

image

@glemaitre
Copy link
Member Author

Actually @Charlie-XIAO also seems to know a lot more CSS than I do :)

@Charlie-XIAO
Copy link
Contributor

If we only want to center this particular one, it seems this table has a specific class sk-sponsor-table and it is wrapped in div.sk-sponsor-div-box so something like

div.sk-sponsor-div-box table.sk-sponsor-table {
  display: table;
}

will work (the div.sk-sponsor-div-box may not be necessary).

@glemaitre
Copy link
Member Author

Apparently, I did not try all the display options that exist :).
Locally it works. Thanks @Charlie-XIAO

Copy link
Contributor

@Charlie-XIAO Charlie-XIAO left a comment

Choose a reason for hiding this comment

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

LGTM, merging this one :)

@Charlie-XIAO Charlie-XIAO merged commit 9ef4ffa into scikit-learn:main Mar 9, 2024
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Mar 14, 2024
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