Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions dist/readthedocs-addons.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/readthedocs-addons.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,14 @@ div.hit-block .hit-block-heading-container svg {
}

:host > div .filters li {
display: inline-block;
display: inline-flex;
Copy link
Contributor

@agjohnson agjohnson Dec 5, 2025

Choose a reason for hiding this comment

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

Switching this to flex shouldn't be required. Flex will introduce other spacing issues, like vertical spacing when elements wrap on mobile viewports.

vertical-align: middle on the input is the same effect.

Image

However, normally checkboxes are baseline aligned, not middle aligned. It looks normal to me on Firefox -- the checkbox is aligned with the text baseline:

image

Copy link
Member

Choose a reason for hiding this comment

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

@agjohnson I'm not sure how to take this feedback? The screenshots above show the issue -- what is the change that fixes it?

Copy link
Member

Choose a reason for hiding this comment

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

I don't know what's the fix here either, but I can reproduce the issue that Eric is trying to fix in Firefox as well. I don't know if this is the correct way or not, but this PR fixes the issue locally to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure how to take this feedback?

I'm saying this shouldn't switch to flex, all that is needed is an alignment change. Using flex has other alignment side effects.

The screenshots above show the issue

The first screenshot does not, it shows the same alignment as this PR. This is using vertical-align: middle on the input.

align-items: center;
margin: 0 0 0 15px;
}

:host > div .filters li label {
padding: 3px;
cursor: pointer;
}

:host > div .filters label {
Expand Down