As discussed in the search bugs thread, the search layout is wonky and confusing.
The problem
A lot of the wonkiness comes from there being no boundaries on the search-results-item section. I’m about to submit some fixes on this area to help contain the results in their column. In the process of figuring out how everything existed I drew a wireframe. It’s SVG. Do with it as you like! Everything in this component appears in both desktop and handheld
This is just a close-up of the search-result-item
The confusing is the content position.
Firstly with mobile, it is currently displaying as two columns, thanks to this function.
Which looks like this currently.
or this
but will not crash out of it’s column once I apply the fixes to .search-result-item’s children.
Our starting point
More wireframes 
Because the above is a bit confusing, I have more wireframes.
They’re all SVG, so you can play along.
Current desktop layout
Current handheld (up to 700px)
Current handheld when you do a title search
Handheld, if we were to remove the two bits of heavy handed styling in the above mentioned function.
Fixes to the ‘search result item’
ETA: The overflow/escaping has been fixed and a PR is waiting in the wings to be updated.
This is what it looked like before.
(I added the red line to illustrate the edge of the div that the content was escaping from).
After
(with the red line, to show the fix)
And the following are what was submitted in the PR, showing different screen sizes.
What do we want search to look like heirarchically?
Search at the moment seems to return 3 kinds of things.
- search result items (translations, followed by root texts- 20 at a time)
- dictionary cards
- suttaplex cards
In a desktop setting, the left hand column is prime real-estate for search.
In handheld,
I think that we should go to full width, single column and decide on our order.
- search results (max 5 for mobile, with a load more)
- suttaplex cards
- dictionary/maps (reference items)
Is my current thought on this
How this plays out on desktop, I’m not so clear. I like to read the dictionary entries if they pop up, but that’s not usually what I am searching for. I wonder if we can have dictionary in a closed accordion. This would help the suttaplex cards rise to the top.
I’m also not sure whether suttaplex cards should get lefthand side real estate, and if so when?
I’m opening this up for discussion.
What do you think? ![]()






