Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I think there is an issue with the display. The search box display is bizarre.
Comment | File | Size | Author |
---|---|---|---|
#17 | Screen Shot 2021-03-01 at 4.57.09 PM.png | 29.75 KB | briangon |
#17 | Screen Shot 2021-03-01 at 4.56.26 PM.png | 18.25 KB | briangon |
#17 | Screen Shot 2021-03-01 at 4.56.40 PM.png | 17.06 KB | briangon |
#12 | admin_toolbar_after_patch.png | 6.26 KB | ChrisSnyder |
#12 | admin_toolbar_before_patch.png | 6.35 KB | ChrisSnyder |
Comments
Comment #2
UNarain CreditAttribution: UNarain commentedComment #3
romainj CreditAttribution: romainj as a volunteer commentedCould you provide any screenshot please?
Comment #4
UNarain CreditAttribution: UNarain commentedComment #5
adriancidI tested the module with the themes:
Claro
Seven
Bartik
And I can't see this problem.
Comment #6
UNarain CreditAttribution: UNarain commentedComment #7
briangon CreditAttribution: briangon commentedThis is worth revisiting, I have the same display error. With bootstrap theme on pages that aren't the admin pages, the .form-control class overrides the input box height. And the margin-top set in rem is inconsistent with the admin pages because of custom theme font sizes. Height should probably be included in the #admin-toolbar-search-input style and the sizes should be kept px for consistency.
Comment #8
JasonLuttrellI agree with the above comment, #7. The search field appears squished to me when I switched themes, which tells me there is a theme conflict. That said, I do not know whether the suggested CSS changes would completely fix the problem either. For example, the #admin-toolbar-search-input padding attribute also uses rem.
For what it's worth, I am using adminimal on the back end and a proprietary theme based on classy on the frontend.
Comment #9
AaronChristian CreditAttribution: AaronChristian at ImageX commentedComment #10
AaronChristian CreditAttribution: AaronChristian as a volunteer and at ImageX commentedI would agree, I've seen this on multiple installs when using a custom FE theme.
Rather than rework the padding with rem units (which will be dependant on current themes base font size), I think a simple fix is just to add a max-height on that particular input ID.
BEFORE:
AFTER:
Comment #11
AaronChristian CreditAttribution: AaronChristian as a volunteer and at ImageX commentedComment #12
ChrisSnyderThe patch provided in comment #10 worked for me.
Before patch:
After patch
I am using a bootstrap 4 based frontend theme.
Comment #14
romainj CreditAttribution: romainj as a volunteer commentedCommited to latest dev version.
Comment #15
romainj CreditAttribution: romainj as a volunteer commentedComment #17
briangon CreditAttribution: briangon commentedI logged back in today to bump this but I'm delighted to see it was addressed again.
Switched to 2.x-dev or 3.x-dev and the fix is present, thanks.
As #8 pointed out, other values still use rem. And in my case the margin-top is slightly off still. Would be best if this were a fixed px value as the rem leaves room for inconsistencies like this to happen.