Skip to content

ManifestSummary popover heigh max to 100vh in small viewport#131

Open
ryprice wants to merge 1 commit into
contentauth:mainfrom
ryprice:manifest-summary-100vh
Open

ManifestSummary popover heigh max to 100vh in small viewport#131
ryprice wants to merge 1 commit into
contentauth:mainfrom
ryprice:manifest-summary-100vh

Conversation

@ryprice
Copy link
Copy Markdown

@ryprice ryprice commented Jan 17, 2024

Changes in this pull request

The root popover, ManifestSummary, expands beyond the bounds of the page in small viewports. See contentauth/c2pa-js#93. This change makes #container flex flow column layout so in cases where #content-container is larger than #container, the 'view more' button stays on screen.

Screen.Recording.2024-01-16.at.7.12.46.PM.mp4

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • All applicable changes have been documented
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment

@ryprice ryprice force-pushed the manifest-summary-100vh branch from 501c88d to 1e89ed1 Compare January 17, 2024 09:13
@ryprice
Copy link
Copy Markdown
Author

ryprice commented Jan 17, 2024

This approach only works assuming the popover is always positioned to the left/right or over the cai-indicator, not below or above where it might not have 100vh. I'm realizing there may be a way to do this more sustainably by using floating-ui size.

@dkozma dkozma requested a review from emensch January 18, 2024 23:45
@ryprice ryprice force-pushed the manifest-summary-100vh branch from 1e89ed1 to 23900ba Compare February 29, 2024 04:46
@emensch emensch force-pushed the main branch 2 times, most recently from f0bbd4e to d61dff1 Compare August 16, 2025 02:58
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