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

Responsive Annotation Toolbar #307

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

rsimon
Copy link
Member

@rsimon rsimon commented Nov 13, 2024

In this PR

Addresses issue reported in #281 and here: the toolbar is now more responsive, and adapts to smaller screens. The current approach should work well down to 640px width.

1. Truncated Title

There is now a maximum width enforced for the assignment- and document titles. Labels are clipped with ellipses if they exceed.

2. Dynamic Removal of Toolbar Items

On initial load and each time the window gets resized, if the toolbar overflows, a fixed set of toolbar items gets removed. Instead, a three-dot "more" button is shown. Also, the toolbar switches from a three-group (left, center, right) to a two-group (left, right) layout. (Note that there is only a single breakpoint. Given we don't have many menu items, I don't think it makes sense to collapse in multiple stages.)

In text mode, the following items are removed:

  • PDF zoom controls
  • Color coding selector and legend

Full width:
Bildschirmfoto 2024-11-13 um 14 55 23

Collapsed:
Bildschirmfoto 2024-11-13 um 14 55 35

In image mode, the following items are removed:

  • Privacy selector
  • Color coding selector and legend

Full width:
Bildschirmfoto 2024-11-13 um 14 54 44

Collapsed:
Bildschirmfoto 2024-11-13 um 14 55 04

When clicking the "more" menu button, removed items are available in an additional popover panel.

Bildschirmfoto 2024-11-13 um 14 56 50

Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for recogito-cloud-staging ready!

Name Link
🔨 Latest commit b78d529
🔍 Latest deploy log https://app.netlify.com/sites/recogito-cloud-staging/deploys/6734b50d6d93be000803d223
😎 Deploy Preview https://deploy-preview-307--recogito-cloud-staging.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 Nov 13, 2024

Deploy Preview for vico-design ready!

Name Link
🔨 Latest commit b78d529
🔍 Latest deploy log https://app.netlify.com/sites/vico-design/deploys/6734b50d2849c50007a3a1f7
😎 Deploy Preview https://deploy-preview-307--vico-design.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.

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