Fix: Selectors for SelectedItemInfo
#359
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #358.
Valve reworked some components on the site in React with a CSS pre-compiler, which generates random class names.
This PR switches to an alternative approach of determining the correct position to minimize the reliance on class names.
Note
Switches SelectedItemInfo injection points to robust :has-based selectors targeting CS2 item info containers.
@InjectAfterselectors insrc/lib/components/inventory/selected_item_info.tsfrom class-based paths to:has(...)selectors targetingdiv#iteminfo0/div#iteminfo1with CS2 app link images, ensuring correct injection location.Written by Cursor Bugbot for commit d06eeea. Configure here.