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

feat(panels): responsive thumbnails based on panel size #4709

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

IbrahimCSAE
Copy link
Collaborator

@IbrahimCSAE IbrahimCSAE commented Jan 18, 2025

Context

Building on top of @jbocce Joe's PR to make thumbnails respond to panel resizing

Demos

Thumbnail Items only

CleanShot.2025-01-17.at.20.20.45.mp4

List Items only

CleanShot.2025-01-17.at.20.19.47.mp4

Mix of thumbnail items and list items

CleanShot.2025-01-17.at.20.21.52.mp4

jbocce and others added 7 commits January 10, 2025 10:36
…i library.

Added a dependency to react-resizable-panels.
The resizing dependency and logic is contained in the ViewerLayout component.
Added the isExpanded prop to SidePanel so that expanded/collapsed is no
longer tied to the activeTabIndex prop.
Refactored SidePanel so that the border sizing info are props and thus
the resizable panels can calculate their sizes accordingly. The side panel
width sizes were already props.
Removed the open and close transition (animation) for the side panels.
Added options to make either, both or neither side panels resizable.
The tricky part was handling window resizes and converting between
pixels and percentages.
Fixed the triggers for opening the side panels dynamically.
Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit 69225b6
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/678b02ec5859ff0008085276
😎 Deploy Preview https://deploy-preview-4709--ohif-platform-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for ohif-dev failed. Why did it fail? →

Name Link
🔨 Latest commit 69225b6
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/678b02eccb67760008a3c387

Copy link

cypress bot commented Jan 18, 2025

Viewers    Run #4723

Run Properties:  status check failed Failed #4723  •  git commit 69225b6a3a: fixes
Project Viewers
Branch Review feat/panel-responsive-layout
Run status status check failed Failed #4723
Run duration 02m 12s
Commit git commit 69225b6a3a: fixes
Committer Ibrahim
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 43
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/integration/measurement-tracking/OHIFMeasurementPanel.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Measurement Panel > checks if Measurements right panel can be hidden/displayed Test Replay Screenshots Video

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.

2 participants