communityconnect icon indicating copy to clipboard operation
communityconnect copied to clipboard

Search form field moves with search result column count

Open timtheguy opened this issue 7 years ago • 7 comments

Currently, in the desktop viewport, searching with less than 3 results in the row moves the search bar with the search results. With three or more results, it appears as below:

image

With two results, it moves to the right some more:

image

With one result (or none) the search result moves to the center along with the search field: image

timtheguy avatar Feb 27 '19 01:02 timtheguy

I'm gonna try and fix this. I'll assign this to myself once I figure out a solution.

rahulmotan avatar Feb 28 '19 03:02 rahulmotan

Fixed this but my changes causes the scroll bar to appear on "/" page. Attaching screenshots. image image

rahulmotan avatar Feb 28 '19 06:02 rahulmotan

Let me know if you want me to create a pull request.

rahulmotan avatar Feb 28 '19 06:02 rahulmotan

Added some comments to your branch. I think it would be ideal if the changes were isolated to the admin page and didn't impact "/". Could we create an additional class to differentiate between the map and the admin page so that the changes don't impact both pages?

alxhghs avatar Feb 28 '19 11:02 alxhghs

Also, nice work, the admin page looks a lot better with this change

alxhghs avatar Feb 28 '19 11:02 alxhghs

Added some comments to your branch. I think it would be ideal if the changes were isolated to the admin page and didn't impact "/". Could we create an additional class to differentiate between the map and the admin page so that the changes don't impact both pages?

I did try that. The entire app is wrapped with that div and it has a CSS property of "overflow": "hidden" to hide the scroll bar on page "/". I did try fixing it with many alternate approaches but so far unsuccessful.

rahulmotan avatar Feb 28 '19 14:02 rahulmotan

Maybe this is something we can look at again later then.

On Feb 28, 2019, at 9:27 AM, Rahul Motan [email protected] wrote:

Added some comments to your branch. I think it would be ideal if the changes were isolated to the admin page and didn't impact "/". Could we create an additional class to differentiate between the map and the admin page so that the changes don't impact both pages?

I did try that. The entire app is wrapped with that div and it has a CSS property of "overflow": "hidden" to hide the scroll bar on page "/". I did try fixing it with many alternate approaches but so far unsuccessful.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/codeforboston/communityconnect/issues/225#issuecomment-468292042, or mute the thread https://github.com/notifications/unsubscribe-auth/ANO6UCkQtxp-7h92H3iqYPQajADWHBYoks5vR-dWgaJpZM4bTe1l.

alxhghs avatar Feb 28 '19 14:02 alxhghs