-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfilerBundle] Fix full sized dump hovering in toolbar #23330
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
[WebProfilerBundle] Fix full sized dump hovering in toolbar #23330
Conversation
After some more investigations, it seems it doesn't happen on a fresh install. It happens on symfony-demo. The cause seems to be a conflict somewhere with bootstrap-sass, as removing it solves the issue. |
ping @javiereguiluz |
@javiereguiluz : What do you think about merging this one? It's not ideal, because I didn't really identify the conflicting css rules leading to this strange behavior, but at least this patch has been proven effective for everyone in the referenced issue. |
@ogizanagi you are right. Let's merge this. Thanks! |
Thanks Maxime. |
…r (ogizanagi) This PR was merged into the 2.8 branch. Discussion ---------- [WebProfilerBundle] Fix full sized dump hovering in toolbar | Q | A | ------------- | --- | Branch? | 2.8 <!-- see comment below --> | Bug fix? | yes | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | #23563 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Since #22953, the dump block shown on hovering the toolbar item takes the full width. But at least on OS X chrome, safari and firefox, the behavior is buggy and makes it unusable as the cursor can't reach the dumped content:  Honestly, I don't really understand the issue here and tried some tweaks until it works everywhere, (including trying to add a `.no-resize` class on `sf-toolbar-info` to avoid executing the related js event listener in case it was conflicting). As shown in the screenshot, it also fixes the case where the dump wasn't full width under a certain size. Commits ------- 28930c5 [WebProfilerBundle] Fix full sized dump hovering in toolbar
What is the meaning of this piece of JavaScript? I think the issue comes from the fact it assumes all Proper quick fix: .sf-toolbar-block.sf-toolbar-block-dump .sf-toolbar-info {
+ left: 0 !important;
max-width: none;
- right: 0;
+ right: 0 !important;
} |
… toolbar (ogizanagi) This PR was merged into the 2.8 branch. Discussion ---------- [WebProfilerBundle] Fix full sized dump hovering in toolbar | Q | A | ------------- | --- | Branch? | 2.8 <!-- see comment below --> | Bug fix? | yes | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | symfony#23563 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Since symfony#22953, the dump block shown on hovering the toolbar item takes the full width. But at least on OS X chrome, safari and firefox, the behavior is buggy and makes it unusable as the cursor can't reach the dumped content:  Honestly, I don't really understand the issue here and tried some tweaks until it works everywhere, (including trying to add a `.no-resize` class on `sf-toolbar-info` to avoid executing the related js event listener in case it was conflicting). As shown in the screenshot, it also fixes the case where the dump wasn't full width under a certain size. Commits ------- 28930c5 [WebProfilerBundle] Fix full sized dump hovering in toolbar
Since #22953, the dump block shown on hovering the toolbar item takes the full width. But at least on OS X chrome, safari and firefox, the behavior is buggy and makes it unusable as the cursor can't reach the dumped content:
Honestly, I don't really understand the issue here and tried some tweaks until it works everywhere, (including trying to add a
.no-resize
class onsf-toolbar-info
to avoid executing the related js event listener in case it was conflicting).As shown in the screenshot, it also fixes the case where the dump wasn't full width under a certain size.