Whitespace on admin/build/menu

mverbaar - June 27, 2009 - 11:20
Project:Drupal
Version:7.x-dev
Component:menu system
Category:task
Priority:minor
Assigned:mverbaar
Status:active
Issue tags:d7uxsprint, Needs design review
Description

Bojhan wrote:

A patch introduced whitespace on admin/build/menu between the description, help text and listing. This should be removed mostly.

Attached is a screenshot of the problem and a mockup for my proposed solution.

AttachmentSizeStatusTest resultOperations
before.png31.83 KBIgnoredNoneNone
after.png25.18 KBIgnoredNoneNone

#1

mverbaar - June 27, 2009 - 11:51

Talked to kika about it. Displaying it inline would be a bit dirty as well, it would cause the help link to be at different spots, depending on the length of the text.

Proposed solution: float it on the right top. That way it’ll be at exactly the same spot, no matter what.

AttachmentSizeStatusTest resultOperations
after-2.png25.11 KBIgnoredNoneNone

#2

mverbaar - June 27, 2009 - 13:21

Created patches for this. There’s a margin: 0.5em 0; on .block .content though, which means there’s still a bit too much whitespace below the help text. Would it conflict with other design decisions to remove that margin?

AttachmentSizeStatusTest resultOperations
drupal-503850-2.patch711 bytesIdleFailed: Failed to apply patch.View details | Re-test
system-503850-2.patch451 bytesIdleFailed: Failed to apply patch.View details | Re-test

#3

mverbaar - June 27, 2009 - 17:32

Never mind the patches above, they’re not working ;)

Here’s an updated version (with a little help from clemens)

AttachmentSizeStatusTest resultOperations
drupal-503850-3.patch1.49 KBIdlePassed on all environments.View details | Re-test

#4

Xano - June 27, 2009 - 21:26
Status:active» needs review

#5

System Message - June 27, 2009 - 21:40
Status:needs review» needs work

The last submitted patch failed testing.

#6

Bojhan - June 28, 2009 - 00:39
Status:needs work» needs review

Thy shall not believe the bot.

#7

kika - June 28, 2009 - 15:48

Works for me, both FF 3.0 and Safari 3.0.
More browser tests needed!

#8

TheRec - June 28, 2009 - 16:12

Works fine in Internet Explorer 6 (of course the PNG alpha transparency fails ;)), 7 and 8 and also in Opera 9.64. Screenshot attached.

AttachmentSizeStatusTest resultOperations
drupal-503850-ie6.jpg77.61 KBIgnoredNoneNone
drupal-503850-ie7.jpg89.77 KBIgnoredNoneNone
drupal-503850-ie8.jpg96.08 KBIgnoredNoneNone
drupal-503850-opera9-64.jpg82.36 KBIgnoredNoneNone

#9

webchick - June 28, 2009 - 16:14

Tagging for (at least) an IE test.

I have to say as a user, that looks extremely jarring to me breaking up the gradient like that. So also tagging as "Needs design review"

#10

TheRec - June 28, 2009 - 16:38
Issue tags:-Needs IE test

Tested on IE. Removing the tag due to cross-posting.

#11

Dries - June 28, 2009 - 20:08

Does it still look good with longer help texts?

#12

TheRec - June 28, 2009 - 20:41

Would my opinon matter, I'd say it looks better "before" ;) Even on the admin/menu/build page...that whitespace never really annoyed me. I should have precised that my focus was to see if the Before/After situation were reproduced on various IE versions (after being asked to test this on IRC).

AttachmentSizeStatusTest resultOperations
drupal-503850-ff3-other-help-text_before.jpg75.14 KBIgnoredNoneNone
drupal-503850-ff3-other-help-text_after.jpg72.55 KBIgnoredNoneNone

#13

Dries - June 28, 2009 - 20:48
Status:needs review» needs work

I agree that it looked better before -- especially with large help texts.

#14

Bojhan - June 28, 2009 - 20:53

Yhea, I reviewd this with him on site. It should be not fixed right, but floated right and pushed below if its more then 1 line.

#15

Sutharsan - June 28, 2009 - 21:24
Status:needs work» needs review

One problem with this solution is that it creates a relatively large white space right of the help text on normal screen size of 1024+. It must be this size because it has a relative width (25%). An other effect can be seen with multi line help text (attached). The help link floats to the top right of the help text area. I am not sure if this is a desired effect.

AttachmentSizeStatusTest resultOperations
multi-line-help-text.png51.08 KBIgnoredNoneNone

#16

Sutharsan - June 28, 2009 - 21:32

This is an alternative patch with less white space (absolute size) and the help text alligned with the last line of help text.
One screenshot attached, tested in FF3, Safari 4, IE6, 7 and 8.

AttachmentSizeStatusTest resultOperations
drupal-503850-4.patch1.43 KBIdlePassed: 11789 passes, 0 fails, 0 exceptionsView details | Re-test
multi-line-white-space-4-FF3.png32.43 KBIgnoredNoneNone

#17

Bojhan - June 28, 2009 - 23:58

Can't it be below?

#18

tstoeckler - June 29, 2009 - 01:17

Someone should test this in Stark, to see whether this actually needs to be in system.css or in Garland's style.css

#19

tic2000 - June 29, 2009 - 09:30

I don't like those divs added in there. Their place is inside a theme function.
The fixed width is not a solution. It may brake the layout if the font size is increased.

#20

Dries - June 29, 2009 - 10:24

It still looks better in CVS HEAD. Either way, this feels a lot like 'lipstick on a pig'. It might make sense to postpone this until the new admin theme is in core?

#21

Bojhan - June 29, 2009 - 10:34

@Dries Well, yes and no. It kind of looks ugly, eveywhere outside of D7UX.

#22

tic2000 - June 29, 2009 - 11:05

You can't get I clean solution if you want this to "float" on right unless you use tables. And to tell the true. I don't like the idea. For long text you will have a lot of white space below the help link.

IMO there are 2 options:
1. What Dries said. Leave it for now, until the admin theme is in core.
2. You make it float right but let the text wrap around it (give it enough padding so it's not lost in the text).

#23

TheRec - June 29, 2009 - 11:54

What about setting the div.help as position:relative, and position the div.more-help-link inside it with position: absolute; top: 0; right:0; ... or maybe center it vertically with the same but top: 50%; ?
And yeah the margin should not be fixed... percent might not be a good solution, but we could use another relative unit to set the right margin...
Another thing to consider is that this margin should not be set when there is no div.more-help-link so we should most likely add a class .with-more-help to the div.help and set these new styles accordingly.

#24

kika - June 29, 2009 - 19:43
Status:needs review» needs work

#3 patch broke help links in FF3.0

+1 on "Leave it for now, until the admin theme is in core."

AttachmentSizeStatusTest resultOperations
module_whitespace_before.png79.25 KBIgnoredNoneNone
module_whitespace_after.png82.06 KBIgnoredNoneNone

#25

Bojhan - June 29, 2009 - 23:50
Status:needs work» postponed

Ok, going to postpone it for now - we should get back to it once we got admin theme in.

#26

yoroy - December 8, 2009 - 02:25
Status:postponed» active

What's up with this now?

 
 

Drupal is a registered trademark of Dries Buytaert.