Skip to content

Fix shared media preview banner overflow with scrollable list#528

Merged
maraf merged 4 commits into
mainfrom
maraf/fix-shared-media-preview-banner-overflow
May 6, 2026
Merged

Fix shared media preview banner overflow with scrollable list#528
maraf merged 4 commits into
mainfrom
maraf/fix-shared-media-preview-banner-overflow

Conversation

@maraf

@maraf maraf commented May 6, 2026

Copy link
Copy Markdown
Member

When multiple files are shared to the app, the .file-progress-global banner expands its file list without any height constraint. Because the banner is sticky-top, the list grows beyond the viewport and users cannot scroll through it or reach content below.

This adds max-height: 50vh and overflow-y: auto to the .list-group inside the banner, making the file list scrollable when it exceeds half the viewport height. The fix applies to both the unassigned-files notification and the upload-progress notification since they share the same CSS class.

Fixes #517

maraf and others added 2 commits May 5, 2026 13:50
Add max-height: 50vh and overflow-y: auto to .file-progress-global
.list-group so the banner scrolls when many files are listed instead
of overflowing the viewport.

Fixes #517

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
maraf and others added 2 commits May 6, 2026 11:07
…a-preview-banner-overflow

# Conflicts:
#	src/Recollections.Blazor.UI/wwwroot/css/site.css
#	src/Recollections.Blazor.UI/wwwroot/css/site.min.css
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses #517 by preventing the sticky shared-file upload/preview notification banner (.file-progress-global) from expanding beyond the viewport when many files are listed, by making the internal list scrollable.

Changes:

  • Add a height constraint and vertical scrolling to .file-progress-global .list-group (SCSS + generated CSS).
  • Minor UI tweak to keep the per-file upload percentage on a single line (text-nowrap).
  • Update generated CSS artifacts (site.css, site.min.css) to reflect the new styles.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
src/Recollections.Blazor.UI/wwwroot/css/site.min.css Regenerated minified stylesheet to include the new scrollable list rule.
src/Recollections.Blazor.UI/wwwroot/css/site.css Regenerated compiled stylesheet to include .file-progress-global .list-group scrolling/height constraints (also modifies sourcemap comment).
src/Recollections.Blazor.UI/wwwroot/css/_file-upload.scss Source SCSS change adding max-height: 50vh and overflow-y: auto for the banner list.
src/Recollections.Blazor.UI/Commons/Components/FileUploadNotification.razor Adds text-nowrap to the upload percentage display.

Comment thread src/Recollections.Blazor.UI/wwwroot/css/site.css
@maraf maraf merged commit 5b7960c into main May 6, 2026
1 check passed
@maraf maraf deleted the maraf/fix-shared-media-preview-banner-overflow branch May 6, 2026 09:31
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.

Shared media preview banner overflows (doesn't scroll)

2 participants