Skip to content
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

Fix: Floatbar Overflow on Market Pages #282

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Conversation

GODrums
Copy link
Collaborator

@GODrums GODrums commented Dec 10, 2024

Motivation

Fixes #281.

Description

With the addition of the tooltip, we require our containers to use overflow: visible in order to display the the tooltip correctly.
This leads to the ItemRowWrapper overflowing into the sticker-container, which is not a part of the same shadow-root.

This PR fixes the issue by giving the main child of the Shadow-Root a display: inline-block, making sure the whole container stays within its boundaries.

Side-effect: the float-bar is now unable to dynamically adjust its size according to the parent system, meaning the maximum width will always be given by the width of the text (Float: ...) below.

Screenshots

Example with float limits 0-1:
Screenshot 2024-12-10 021828
Example with float limits 0.1-0.7:
Screenshot 2024-12-10 021938

@GODrums GODrums added the bug label Dec 10, 2024
@GODrums GODrums requested a review from Step7750 December 10, 2024 01:26
@GODrums GODrums self-assigned this Dec 10, 2024
@GODrums GODrums merged commit 4ec3fcc into master Dec 10, 2024
2 checks passed
@GODrums GODrums deleted the fix/market-floatbar-overflow branch December 10, 2024 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Prevent Overlap of Float Bar with Stickers
2 participants