floss-fund / portal

Portal / directory for listing, indexing, and crawling funding.json manifests
https://dir.floss.fund
GNU Affero General Public License v3.0
22 stars 6 forks source link

reduce search button padding to match search input height #10

Open shpiyu opened 3 weeks ago

shpiyu commented 3 weeks ago

The search button's height is little more than the search input, so reduced the padding of the button to match the hieghts.

Before:

Screenshot 2024-11-03 at 10 57 18 AM

After:

Screenshot 2024-11-03 at 11 00 09 AM Screenshot 2024-11-03 at 10 59 41 AM
knadh commented 2 weeks ago

This breaks in Firefox. I think we should remove the padding altogether and use flex to align it.

shpiyu commented 2 days ago

@knadh flexbox works, although the outline was still causing difference in how the input box is rendered in chrome vs firefox.

In firefox:

Screenshot 2024-11-23 at 6 12 17 PM

In chrome:

Screenshot 2024-11-23 at 7 51 35 PM

So, I removed the outline and added an accent color that is applied to the border when the input is focused. Now it looks consistent in both the browsers.

Screenshot 2024-11-23 at 8 11 23 PM Screenshot 2024-11-23 at 8 12 56 PM