Improve layout of Chant Search, Chant Search MS views #847
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR improves the layout of the Chant Search and Chant Search Manuscript views. It is a first step towards setting up #843 (I had started to work on implementing a "search indexing notes" field, and the page began to look quite terrible - in an attempt to make PRs that aren't enormous, this PR is a first step towards implementing the latter feature, where we can just take everything above "Office/Mass" and duplicate/adapt it below "Melodies" for the new field.)
It fixes #846.
Previously, the "Contains"/"Starts with" box was just as large as the "Keyword search" field, which was tripping up testers:
This PR makes the "Contains" box smaller.
The fields beneath this row have also been rearranged (bootstrap deals with 12 columns, but there were 7 items equally spaced on the lower line - without this rearrangement, nothing would align visually):
Also, previously, when the window became somewhat narrow, every field would go onto its own line:
Now, when the window becomes somewhat narrow, the fields pair up, which looks a bit neater:
And now, the fields take up full lines only when the window becomes very narrow. When this happens, the "Contains" box stays smaller than the "Keyword" field: