In the (Seven) Dashboard the Switch User block wastes a lot of space, see the attached screenshot. I've tried in vain to get the [Switch] button to align with the entry field, similar to the Search block. If the column is not wide enough, it should wrap below the 'Enter username', of course.

Can anyone help with this?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cindyr’s picture

Try adding this to your style sheet:

#devel-switch-user-form .form-item-username {
float: left;
margin-right: 1em;
}

salvis’s picture

Status: Active » Needs review
FileSize
1.5 KB

@cindyr: Thank you for your help — I'm sorry for letting this sit so long.

The Dashboard doesn't like the Switch User block anyway (it doesn't display the user list at all anymore). But no one has complained so far, so I assume no one wants to put the block into the Dashboard anyway.

However, the inefficient and ugly styling has bothered me on other occasions, too, especially in Seven, and whenever the block is put into the body or footer region. Having a column of user names just doesn't work so well in a wide region.

I think the attached patch should make things much better.

salvis’s picture

Status: Needs review » Fixed

Committed to 8/7.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.