cyphar / perfectgift

Group 4's 2014 NCSS Project.
Other
2 stars 1 forks source link

Fix form alignment #10

Closed auscompgeek closed 10 years ago

auscompgeek commented 10 years ago

The following two screenshots are in Pale Moon 24.2.2, a fork of Firefox.

account-form: account-form

add-wish: add-wish

cyphar commented 10 years ago

Whoa. What's up with your browser?

2014-01-17-232620_1196x657_scrot 2014-01-17-232631_968x710_scrot

auscompgeek commented 10 years ago

You (as in group 4) designed for WebKit rather than standards, that's what's up. :tongue:

As they say, WebKit is the new IE6.

PS: Don't look at /login in IE10 if you know what's good for you.

cyphar commented 10 years ago

I did not design anything. Blame the guys who did the black magic CSS.

auscompgeek commented 10 years ago

After removing the float: left from the labels on /login, and removing the margin-top on the forms' labels and buttons, /login doesn't look bad at all.

account-forms-fixed

cyphar commented 10 years ago

The login form is fixed in ec203fbfe65b45ad88b16818a93b1063ab645cf3. Still need to fix the wishlist abomination. Call the exorcist.

cyphar commented 10 years ago

I just discovered that ec203fbfe65b45ad88b16818a93b1063ab645cf3 (apart from fixing /login) broke the wishlist form in Chromium. F*ck.

auscompgeek commented 10 years ago

Now that we've fixed the account forms in fd04122d1ecf39efd1a2c7202fd788a720daea09 and ec203fbfe65b45ad88b16818a93b1063ab645cf3, we now have to fix the wish form. It is completely broken in Chromium, and looks bad in Firefox. What I've done so far looks good.

wish-form-fixed

HTML changes:

CSS changes:

cyphar commented 10 years ago

Before pull requesting:

auscompgeek commented 10 years ago

The spacing between the URL and price fields, I believe, were originally designed that way. If this is not so, I can remove some of the cruft in the HTML to account for this.

The description textarea's rows can be easily increased. :smile:

The removal of the website input's id did indeed break the scraping JS.

cyphar commented 10 years ago

I don't think there should be space between the two. That aside, it looks pretty good! Can you show a screenshot of what it looks like when scraping url data?

auscompgeek commented 10 years ago

After further testing, I've found that increasing the textarea's rows from 3 to 4 might not be such a good idea. The submit button gets a bit too close for comfort, so much in Firefox that the button overlaps with the textarea.

Anyway, this is what it looks like when scraping for images (Firefox):

wish-form-fixed-scrape

cyphar commented 10 years ago

The choose an image tag needs to be fixed too... oh well.

auscompgeek commented 10 years ago

Eh, it's close enough.

auscompgeek commented 10 years ago

In other news, all this fixed IE's rendering of the forms as well!

cyphar commented 10 years ago

Funny story! The form is badly rendered on my small-screen chromebook. Try making the screen really small.

auscompgeek commented 10 years ago

Could I see a screenshot? It looks fine in IE and Firefox.

cyphar commented 10 years ago

That's strange ... it seems to have corrected itself when I just pulled from the git repo.