Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backdrop content elements #2093

Merged
merged 35 commits into from
Apr 5, 2024
Merged

Backdrop content elements #2093

merged 35 commits into from
Apr 5, 2024

Conversation

tf
Copy link
Member

@tf tf commented Mar 27, 2024

REDMINE-20634

@tf tf force-pushed the backdrop-content-elements branch 3 times, most recently from c5991c8 to 32ff508 Compare March 27, 2024 14:34
tf added 16 commits April 4, 2024 09:40
* Setting position to `backdrop` changes backdrop type to
  `contentElement`.

* There can only ever be one backdrop content element in a section.

* Changing backdrop type from `contentElement` resets position of
  backdrop content element to inline.

* Toggling backdrop type back to `contentElement` restores position of
  previous backdrop content element.

* Changing position from `backdrop` restores previous backdrop type.

REDMINE-20634
Allow scrolling to same section twice in a row.

REDMINE-20364
* Pad content

* Do not apply dynamic shadow when section is empty

* Apply different section heights based on section transitions

REDMINE-20636
Turn `useSectionContentElements` hook into
`useSectionForegroundcontentelements` hook which filters out elements
with position `backdrop`. Introduce `useContentElement` hook to look
up elements by perma id and use it to render content element in the
backdrop if `section.backdrop.contentElement` is set.

At the moment, perma ids might get re-used once an element is deleted
and another one is created. We need to prevent the new element from
being treated as the backdrop of the section if it belongs to another
section. We therefore check the sectionId of the element.

REDMINE-20634
@tf tf added this to the v17.1 milestone Apr 5, 2024
@tf tf force-pushed the backdrop-content-elements branch 2 times, most recently from 001cb76 to 27d8a90 Compare April 5, 2024 13:06
tf added 3 commits April 5, 2024 15:19
Ensure player controls are already in the viewport even when the video
has not been scrolled fully into the viewport.

REDMINE-20634
Position backdrop from bottom to ensure controls of backdrop videoe
elements are moved up when mobile Safari expands its location bar at
the bottom or stay in place when Chrome on Android expands its
location bar at the top.

REDMINE-20634
@tf tf force-pushed the backdrop-content-elements branch from 27d8a90 to e274308 Compare April 5, 2024 13:19
@tf tf merged commit 82c97ce into codevise:master Apr 5, 2024
13 checks passed
@tf tf deleted the backdrop-content-elements branch May 14, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant