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.
search input is too small. It can only fit 2 word phrases which is not enough. especially when you search content by "Advanced search".
Comment | File | Size | Author |
---|---|---|---|
#15 | search-input-width-1258342-15.patch | 1.09 KB | Andreas Radloff |
#5 | screenshot.png | 23.75 KB | RobLoach |
#5 | 1258342.patch | 438 bytes | RobLoach |
#4 | search.png | 27.09 KB | droplet |
#4 | search-input.patch | 1.21 KB | droplet |
Comments
Comment #1
Bojhan CreditAttribution: Bojhan commentedYes, can we do a little bit less though?
Comment #2
droplet CreditAttribution: droplet commentedsure. any suggestion ? now is the default size of 40 (300px)
Comment #3
RobLoachInstead of doing this with CSS, could we just change the #size of the textfield so that it applies to all themes rather than just Bartik's?
Comment #4
droplet CreditAttribution: droplet commentedMake sense, change it globally
Comment #5
RobLoachDoes Bartik really need to specify the width itself? I don't see any reason why Bartik has to change it.
Comment #7
RobLoach#5: 1258342.patch queued for re-testing.
Comment #8
droplet CreditAttribution: droplet commented#5: 1258342.patch queued for re-testing.
Comment #9
droplet CreditAttribution: droplet commentedLooks good.
Comment #10
catchWhich patch is RTBC? Both?
Comment #11
themesplanet CreditAttribution: themesplanet commentedYes sure you can change the width of search input through css. Take class of input search button and write the css for it.
Comment #12
droplet CreditAttribution: droplet commented@catch,
Patch #5: remove default style
Patch #4: remove default style and change form width (suggest from #1)
Comment #13
Mukeysh CreditAttribution: Mukeysh commentedchange to RTBC.
Comment #14
webchickHm. I think what's needed here is a patch that combines the two approaches. It sounds like what we want here is to set the size differently in the form element itself, and then also remove the custom CSS override of e.g. Bartik to not respect that.
This sounds potentially easy to do, so tagging as Novice.
Comment #15
Andreas Radloff CreditAttribution: Andreas Radloff commentedAs requested by webchick, here's a patch combining:
1: remove width from Bartik search form css to make it wider.
2: Make search form smaller by setting width to 30 instead of forty on form element.
Comment #16
centas CreditAttribution: centas commentedTested the patch, seems to be working fine and does combine both approaches mentioned.
Comment #17
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks.