Download & Extend

Please help theme the Switch User block

Project:Devel
Version:7.x-1.x-dev
Component:devel
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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?

AttachmentSizeStatusTest resultOperations
Dashboard-blocks.png5.39 KBIgnored: Check issue status.NoneNone

Comments

#1

Try adding this to your style sheet:

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

#2

Status:active» needs review

@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.

AttachmentSizeStatusTest resultOperations
devel.theme-switch_user_block.908830.2.patch1.5 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch devel.theme-switch_user_block.908830.2.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.View details

#3

Status:needs review» fixed

Committed to 8/7.

#4

Status:fixed» closed (fixed)

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

nobody click here