Repository navigation
Mobile: shared collapsing navy header on the organization and event pages - #755
Merged
Merged
Conversation
added 2 commits
November 28, 2026 12:50
…empty hero CollapsingHeader: the back button, a tile (logo) and the title to its right with a subtitle under it, pinned at the top. On scroll the large title (up to 28, two lines) cross-fades into a 17pt one-line title with an ellipsis, the tile shrinks and the header's height follows, so the content stays right under it. Reduce Motion: the two states swap with a short fade. Organization page: the 160pt navy hero with only the logo is gone. The header shows back, the logo, the name and „N voluntari” at rest and when scrolled; the content starts right under it.
…of the title Back, the title (up to three lines, sized so no word breaks) and the yellow date card on its right, the date under the title, the Public / status chips on their own row. On scroll the header collapses to back and the title on one line, like the organization page.
added 4 commits
November 28, 2026 13:21
…ame left and tile right The navy header of the organization and event pages now starts 20 under the Code for Romania band (new space.top token). The back button sits alone on its first row and never moves; the title and subtitle are on the left of the next row with the tile on the right, 18 apart and centred on the title: the organization logo (60, white tile) and the event's yellow date card. Collapsed, the 74pt bar keeps the back button in place, the one-line title next to it and the small logo on the right. Content starts 18 under the navy edge.
… 18 side margins usePaddingTop now uses space.top (20) instead of 16, which moves the header of every pushed page and modal (Date personale, Notificări, Join, CreateUser...) off the band. PushedHeader (Anunțuri, document viewer) gets the same 20 instead of 10. The page title is 24pt like the other headers, and the fields of Date personale and the rows of Notificări align on the 18 gutter instead of 20.
Acasă, Evenimente, Ore, Organizații, Documente and Profil each started at a different height under the band (6 to 18). They all start at space.top (20) now, and a large title is followed by 16 (new space.titleAfter) before the content. Documente: the title sits 14 under the back button when opened from a volunteer page. Organizații: 14 between the search field and the list.
Bottom sheets cover the whole window, band included, so their tallest height now stops 20 under the band (useBandBottom) instead of sliding under it on iOS. The forms sheet (add hours) opens at that height, and the button at the bottom keeps 18 above the navigation bar. Login and Landing start 20 under the band and use the 18 side margin like every other screen (they had 20 and 24). The email sheet's hint is the field's helper, right under the field. The test for the picker's maximum height follows the new 20.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A shared collapsing navy header for the detail screens, used by the organization page and the event page.
CollapsingHeader (
src/components/ui/CollapsingHeader.tsx)Organization page
Event page
The tab screens (Acasă, Evenimente, Ore, Documente, Profil) already collapse their large title into the compact bar; they are unchanged.
Tests: the organization header test is updated; new test for the volunteer count plural. jest 589/589, tsc, eslint.
Tested on Samsung Galaxy S24.