Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WebProfilerBundle] Fix design issue in profiler when having errors in forms #17561

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 2 commits into from
Closed

Conversation

Pierstoval
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

This error occurs mostly when having long form field names or types,

Before:
before

After:
after

That said, I don't know what to do about z-index, whether the error count prevails on the type or vice-versa 😕

@javiereguiluz, an idea ?

@javiereguiluz
Copy link
Member

@Pierstoval thanks for providing this fix. A while ago we fixed the problem of long form types (see #17417). Could you please check if your fix is needed even after applying the mentioned merge? Thanks!

@Pierstoval
Copy link
Contributor Author

I applied the fix from #17417 but even if the FQCN is reduced to the final class name, the problem persists: it does not come from the toggle buttons, but from the red error count badge. So when having long field names, the issue is still present.

@stof
Copy link
Member

stof commented Jan 27, 2016

IMO, the right fix is not to use absolute positionning (which will make content overflow). A better way would be to use a clearfix on the parent element to ensure the floated element stays in the parent

@Pierstoval
Copy link
Contributor Author

@stof your proposal is good, didn't thought about it, but now the label wraps down for long form type classes.

I don't know if very long form type class names are common though 😕
What do you think?
capture d ecran 2016-01-27 a 12 12 44

@stof
Copy link
Member

stof commented Jan 27, 2016

@Pierstoval this is because a right-floated label should appear before the non-floated content in the DOM, not after it, if you want it to be floated near the beginning of the content rather than near the end. This is the behavior of float.

@javiereguiluz javiereguiluz modified the milestone: 3.1 Feb 2, 2016
@javiereguiluz
Copy link
Member

I agree with @stof here. @Pierstoval could you please update this PR to use floats instead of absolute positioning? Thanks!

@Pierstoval
Copy link
Contributor Author

I updated it and simply moved the error badge at the beginning of the <li> flow so it comes prior

@javiereguiluz
Copy link
Member

@Pierstoval that would be a significant change. Could you please paste a screenshot of the new design? Thanks!

@fabpot
Copy link
Member

fabpot commented Feb 29, 2016

@Pierstoval Can you provide some screenshots? Is this PR ready to be merged?

@Pierstoval
Copy link
Contributor Author

Here is the new "before/after" I can test on one app with this PR:

Before After
admin_before admin_after

IMO it could be merged as-is

@fabpot
Copy link
Member

fabpot commented Mar 1, 2016

Thank you @Pierstoval.

fabpot added a commit that referenced this pull request Mar 1, 2016
…ng errors in forms (Pierstoval)

This PR was squashed before being merged into the 2.8 branch (closes #17561).

Discussion
----------

[WebProfilerBundle] Fix design issue in profiler when having errors in forms

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

This error occurs mostly when having long form field names or types,

**Before:**
![before](https://cloud.githubusercontent.com/assets/3369266/12610913/89bddfd8-c4ea-11e5-9372-2b7740d8c4b3.png)

**After:**
![after](https://cloud.githubusercontent.com/assets/3369266/12610915/8ae22a4a-c4ea-11e5-94ce-9257a9409b4a.png)

That said, I don't know what to do about z-index, whether the error count prevails on the type or *vice-versa* 😕

@javiereguiluz, an idea ?

Commits
-------

76e1c0a [WebProfilerBundle] Fix design issue in profiler when having errors in forms
@fabpot fabpot closed this Mar 1, 2016
This was referenced Mar 27, 2016
ostrolucky pushed a commit to ostrolucky/symfony that referenced this pull request Mar 25, 2018
…en having errors in forms (Pierstoval)

This PR was squashed before being merged into the 2.8 branch (closes symfony#17561).

Discussion
----------

[WebProfilerBundle] Fix design issue in profiler when having errors in forms

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

This error occurs mostly when having long form field names or types,

**Before:**
![before](https://cloud.githubusercontent.com/assets/3369266/12610913/89bddfd8-c4ea-11e5-9372-2b7740d8c4b3.png)

**After:**
![after](https://cloud.githubusercontent.com/assets/3369266/12610915/8ae22a4a-c4ea-11e5-94ce-9257a9409b4a.png)

That said, I don't know what to do about z-index, whether the error count prevails on the type or *vice-versa* 😕

@javiereguiluz, an idea ?

Commits
-------

76e1c0a [WebProfilerBundle] Fix design issue in profiler when having errors in forms
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