-
Notifications
You must be signed in to change notification settings - Fork 64
Conversation
Ready for review! |
class="filters py-8 px-10 min-h-full md:bg-dark-charcoal-06" | ||
data-testid="filters-list" | ||
> | ||
<div class="filters py-8 px-10" data-testid="filters-list"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Styles specific to the search filter sidebar have been moved up in the component tree.
# Conflicts: # src/locales/po-files/openverse.pot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something here has broken the body scroll lock for the filters modal on mobile (but not the search type switcher 🤔) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is exciting!
Couple of issues I'm noticing:
- Filter sidebar has a scrollbar on desktop widths when the translation banner is visible
- When both banners are open the header is so big it obscures almost half the screen on mobile devices
- There is horizontal scroll on smaller viewports in the filter and search type modals
- On smaller viewports the header wraps, I'm not sure what the right solution there is, but maybe the search type switcher button isn't truncating as expected? 🤔
- The mobile global audio player is behaving quite strangely. It's not actually meant to show on the single result page anyway. Some of this may be caused by mysterious horizontal scrolling on the audio single results page but other aspects of it (like the global audio player not sticking to the bottom of the screen) are unique to this branch.
src/layouts/default.vue
Outdated
watch([isMainContentScrolled], ([isMainContentScrolled]) => { | ||
isHeaderScrolled.value = isMainContentScrolled | ||
}) | ||
watch([mainContentY], ([mainContentY]) => { | ||
scrollY.value = mainContentY | ||
watch([windowY], ([windowY]) => { | ||
scrollY.value = windowY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can probably be computed
s if you want to update them.
Great review @sarayourfriend, thank you! I think I can fix this stuff 😄 |
I think that it was caused by the |
The changes in the latest PRs:
I think this PR is ready to be merged 🚀 |
Trying |
Note that that's just a stopgap. I regularly use Openverse under the |
@sarayourfriend a full, non stop-gap fix for this is applied, and the Playwright tests are passing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such a huge improvement here. I love that the header doesn't make two lines when is scrolled on mobile anymore! :)
#1212 is still an unresolved issue, but that could be addressed apart. Great work here!
Fixes
Fixes #1214
Fixes #1060
Fixes #1043
Fixes #845
Description
Switches Openverse's frontend to use a truly-sticky header, an actual fixed sidebar, and removes code to hide overflow in parent containers.
Also fixes the mobile header issues by adding
w-full
to the search input, which overrides the automaticsize="20"
applied to unsized inputs!Testing Instructions
Visit the site and observe the filter sidebar, mobile filter popup, and mobile header. If you're on MacOS please try with different scrollbar settings:
You can search 'scrollbar' in system preferences to find those controls. Additionally, please test on mobile devices, the smallest you can find, to make sure that all header elements fit within the viewport without any icons cutting off.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin