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

Show MultipleInput icons in Edit-Mode #409

Merged
merged 1 commit into from
Jun 10, 2020
Merged

Conversation

jotoeri
Copy link
Member

@jotoeri jotoeri commented May 24, 2020

Quite some css fun, as from server-side the visible input-items are just dummy-css fields, while the real input is hidden. Therefore i now included some dummy-div and just copied the server-style to show the same elements.

As i had to adjust a few things on the input-fields for alignment, i had to adjust that on all question-types and recognized, that the .question__input[type="text"] was located in three places. To have it in one place, i shifted it to the question-element, but unfortunately now needed there an unscoped css. But as we use the BEM-Model on this, it should be ok, i think.

Unfortunately on Firefox, the line-height still changes a bit between showing & editing a question, as firefox overrides the line-height with some own style. That seems a bit like a firefox-bug to me. :/ On Edge it works perfectly.

Solves

  • Still show checkbox when editing

And therefore also finishes this one? @jancborchardt

  • In edit mode, not enough difference between choices types:

grafik
grafik

@jotoeri jotoeri added enhancement New feature or request 3. to review Waiting for reviews feature: 📑 form creation labels May 24, 2020
@jotoeri jotoeri added this to the 2.0 milestone May 24, 2020
@codecov-commenter
Copy link

codecov-commenter commented May 24, 2020

Codecov Report

Merging #409 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #409   +/-   ##
========================================
  Coverage      0.00%   0.00%           
  Complexity      193     193           
========================================
  Files            17      17           
  Lines          1059    1059           
========================================
  Misses         1059    1059           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7577a3...612f75e. Read the comment docs.

@jancborchardt jancborchardt mentioned this pull request May 24, 2020
63 tasks
Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! Really great, makes it sooooooo much more obvious, great work!
There’s a tiny 1px vertical shift of the answers, and also a slight size change of the radio buttons and checkboxes, but we can also look at that afterwards. :)

@jotoeri
Copy link
Member Author

jotoeri commented May 24, 2020

There’s a tiny 1px vertical shift of the answers, and also a slight size change of the radio buttons and checkboxes, but we can also look at that afterwards. :)

You're working on firefox, no? Thats why i wrote that part above: 😉

Unfortunately on Firefox, the line-height still changes a bit between showing & editing a question, as firefox overrides the line-height with some own style. That seems a bit like a firefox-bug to me. :/ On Edge it works perfectly.

@jancborchardt
Copy link
Member

Ooops, missed that part. :D Also just tested in Chrome and there’s a similar issue though:

Firefox Chrome
forms switch firefox forms switch

@jotoeri
Copy link
Member Author

jotoeri commented May 25, 2020

Argh. On very large size i found it on edge now, too.
Could you have a look onto the css? I don't find the clue at the moment... :/

@jancborchardt
Copy link
Member

Could you have a look onto the css? I don't find the clue at the moment... :/

No worries, I’ll look into this. :) Should be something which is fixable with some slight padding-top for example.

@jancborchardt
Copy link
Member

I tried some things for fixes but even after npm run dev it doesn’t show when testing – does it work for you?

In any case, there seem to be a lot of unrelated changes which could create the layout issues, also different issues in different browsers. I would recommend we pick only the absolutely necessary parts from this pull request first, to pin down exactly where the issue occurs?

@jotoeri jotoeri force-pushed the fix/edit_answer_icon branch 2 times, most recently from e007203 to 6cee46d Compare May 27, 2020 22:10
@jotoeri
Copy link
Member Author

jotoeri commented May 27, 2020

Ok, so. This version is now working no MS Edge, as well as Opera on 100% Window-Size. Increasing this Window-zoom, it breaks. On Firefox, it still changes.
Taking the version two commit above, 7eedada, it works perfectly on firefox, but not on Edge/Opera.

To be honest - i'm done with this now. Took me already two nights. @jancborchardt if you're motivated, just keep on trying. The commit-history now has the first commit that implements the basic functionality, then i documented each small step i changed on css.

@jotoeri jotoeri added 2. developing Work in progress help wanted Extra attention is needed and removed 3. to review Waiting for reviews labels May 27, 2020
@jancborchardt
Copy link
Member

@skjnldsv could you check this? :)

@jotoeri jotoeri added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 5, 2020
@jotoeri
Copy link
Member Author

jotoeri commented Jun 5, 2020

:D ok. Just thought about these days, it is some kind of rounding-issue. Now found a solution, that works at least on 100%-view on firefox and edge. Still a strange and unstable thing...

@skjnldsv
Copy link
Member

skjnldsv commented Jun 9, 2020

Now found a solution, that works at least on 100%-view on firefox and edge. Still a strange and unstable thing...

Please add lots of comments for the css then :p

Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good now and code comments look proper :)

@jancborchardt
Copy link
Member

@jotoeri could you check out the conflicts arisen from the other merges? :) Thanks!

Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
@jancborchardt jancborchardt merged commit 3858f29 into master Jun 10, 2020
@jancborchardt jancborchardt deleted the fix/edit_answer_icon branch June 10, 2020 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request feature: 📑 form creation help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants