Skip to content

[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

Closed
wants to merge 3 commits into from
Closed

[WebProfilerBundle] Sticky ajax window #23154

wants to merge 3 commits into from

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Jun 13, 2017

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.

@javiereguiluz
Copy link
Member

I'm not sure about this because it introduces a different behavior in the toolbar depending on the panel the user clicks.

@ro0NL
Copy link
Contributor Author

ro0NL commented Jun 13, 2017

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 :))

Copy link
Member

@nicolas-grekas nicolas-grekas left a 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 :)

@nicolas-grekas nicolas-grekas changed the base branch from master to 3.4 June 14, 2017 07:57
@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Jun 14, 2017
.sf-toolbar-block:hover .sf-toolbar-icon {
.sf-toolbar-block:hover .sf-toolbar-icon,
.sf-toolbar-block.hover .sf-toolbar-icon
{
Copy link
Member

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

@ro0NL
Copy link
Contributor Author

ro0NL commented Jun 14, 2017

i think we should do this for all blocks that are not linking btw =/ (ie. .sf-toolbar-block > .sf-toolbar-icon vs. .sf-toolbar-block > a > .sf-toolbar-icon) if that's the standard format.

@fabpot
Copy link
Member

fabpot commented Jun 14, 2017

Thank you @ro0NL.

fabpot added a commit that referenced this pull request Jun 14, 2017
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
@fabpot fabpot closed this Jun 14, 2017
@ro0NL ro0NL deleted the wdt/sticky-ajax-window branch June 15, 2017 14:51
nicolas-grekas added a commit that referenced this pull request Sep 18, 2017
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
![image](https://user-images.githubusercontent.com/1047696/30522978-f49c3c5c-9bd8-11e7-8bac-e7a690d5c34d.png)

After
![image](https://user-images.githubusercontent.com/1047696/30522965-d000e6fe-9bd8-11e7-92a8-52699c6619f8.png)

In case you hover the time panel.

Commits
-------

081c1e4 [WebProfiler] Fix z-index for pinned AJAX block
This was referenced Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants