-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfilerBundle] Sticky ajax window #23154
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
Conversation
I'm not sure about this because it introduces a different behavior in the toolbar depending on the panel the user clicks. |
Well.. currently it's the only block (by default) that has no click handler (ie. is not a link). So it already behaves different, but in a more frustrating way :) it's truly convenient :)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 as explained by @ro0NL the "click" action should do something useful, here it is :)
.sf-toolbar-block:hover .sf-toolbar-icon { | ||
.sf-toolbar-block:hover .sf-toolbar-icon, | ||
.sf-toolbar-block.hover .sf-toolbar-icon | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this curly brace should stay on previous line for consistency with all other rules
i think we should do this for all blocks that are not linking btw =/ (ie. |
Thank you @ro0NL. |
This PR was squashed before being merged into the 3.4 branch (closes #23154). Discussion ---------- [WebProfilerBundle] Sticky ajax window | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #23125 | License | MIT | Doc PR | - This toggles the ajax toolbar block being sticky on click. I find it quite useful in heavy ajax apps :) Not sure the state needs to be persisted in local storage or so, could be done :) however for our app all the navigating happens via react router, hence no real need for us to persist it between requests. Commits ------- b92929b [WebProfilerBundle] Sticky ajax window
This PR was merged into the 3.4 branch. Discussion ---------- [WebProfiler] Fix z-index for sticky ajax window | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes/no | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Forgotten in #23154 Before  After  In case you hover the time panel. Commits ------- 081c1e4 [WebProfiler] Fix z-index for pinned AJAX block
This toggles the ajax toolbar block being sticky on click. I find it quite useful in heavy ajax apps :)
Not sure the state needs to be persisted in local storage or so, could be done :) however for our app all the navigating happens via react router, hence no real need for us to persist it between requests.