If you disable Shortcut, it leaves a white gap. It should collapse, shouldn't it?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | shortcuttoolbar.patch | 1.66 KB | casey |
| seven_shortcut_gap.png | 17.77 KB | lisarex |
If you disable Shortcut, it leaves a white gap. It should collapse, shouldn't it?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | shortcuttoolbar.patch | 1.66 KB | casey |
| seven_shortcut_gap.png | 17.77 KB | lisarex |
Comments
Comment #1
morbus iffConfirmed in Safari.
Comment #2
jbrown commentedAlso, if Shortcut is enabled, but Toolbar is not, then the Shortcut links are present, but the Shortcut bar is not.
Comment #3
morbus iffThis is being caused by toolbar.css:
From my custom theme, it's fixable with:
One possible core fix is to move the original toolbar-drawer CSS padding into shortcut.css instead.
Comment #4
casey commentedOther modules could also add drawers to the toolbar so #3 is not an option.
We need javascript here. When we use this patch we could also remove the body.toolbar-drawer class.
Adding the stylesheet to the add-remove-shortcut is necessary for situation as mentioned in #2; shortcut enabled, toolbar disabled.
Comment #5
casey commentedComment #6
aspilicious commentedtested this is FIXED now...
setting to RTBC
I found another issue...
When shortcuts are disable you still see the text: Add to default shortcuts... (in stead of the shortcut button/icon)
Is this normal?
Do I need to open thread for that?
Comment #7
webchickThis fixes the annoying gap left on the page when shortcut module is enabled for me. Woo hoo! :D Committed to HEAD.
I was not able to reproduce aspilicious's results in #6, however. When Shortcut module is off, the "Add to shortcuts" disappears from all themes. But if there is a bug here, I don't really see how that could be solved by this patch, so it should indeed be a separate issue.
Comment #8
jbrown commentedThe problem is that if Shortcut is enabled, but Toolbar is not, then you can't see the shortcut bar, but you can see the add to shortcuts links.
Maybe shortcut should depend on toolbar, so shortcut can't be enabled without toolbar?
Comment #10
David_Rothstein commentedRegarding @jbrown's suggestion to make the Shortcut module depend on Toolbar, see #1262966: Make the Shortcut module depend on the Toolbar module (closed - won't fix).
Perhaps it's worth filing a separate issue to make the "add to shortcuts" link only appear if the shortcuts are actually displayed on the current page? Note that this would naturally be solved for Drupal 8 by something like #1164782: The icon to add something to shortcuts wasn't clearly discoverable., though.