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

Edit-menu: Modify interface from users feedback #1371

Conversation

ArturoManzoli
Copy link
Contributor

From @ES-Alexander feedback:

  • Prevent map from being interactive during edit-mode;
  • Added paddings on the widget and mini widgets add bar;
  • Fixed some text inconsistencies pointed by ES-Alexander;
  • Fixed positioning on various components;
  • When adding mini-widgets, cards are no longer being dragged together;
  • Fixed mouse hovering icon/info is inconsistency over different parts of the widget cards;
  • Prevent main menu tab from being visible during edit-mode;

Comment on lines 871 to 887
// Resize mini widgets so they fit the layout when the widget mode is set to mini widgets
const miniWidgetContainers = ref<Record<string, HTMLElement>>({})
watch(widgetMode, () => {
if (widgetMode.value !== 'Mini widgets') return
nextTick(() => {
Object.values(miniWidgetContainers.value).forEach((element) => {
if (element.scrollWidth > element.clientWidth) {
let scale = 1
while (element.scrollWidth > element.clientWidth) {
scale -= 0.01
const actualElement = element.children[1] as HTMLElement
actualElement.style.scale = `${scale}`
}
}
})
})
})
Copy link
Member

Choose a reason for hiding this comment

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

I think you accidentally removed a feature here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, Thanks for letting me know

@rafaellehmkuhl
Copy link
Member

There's just one thing that I remember @ES-Alexander mentioning that was not added here: the ability to click outside of the profile-select-menu and it closing. Can we also add that here?

@ArturoManzoli
Copy link
Contributor Author

ArturoManzoli commented Oct 1, 2024

There's just one thing that I remember @ES-Alexander mentioning that was not added here: the ability to click outside of the profile-select-menu and it closing. Can we also add that here?

Done, @rafaellehmkuhl

@ArturoManzoli ArturoManzoli force-pushed the Fix-edit-mode-issues-from-feedback branch from a405dcd to 0d47248 Compare October 1, 2024 13:31
@ArturoManzoli ArturoManzoli force-pushed the Fix-edit-mode-issues-from-feedback branch from 0d47248 to c3afe0e Compare October 1, 2024 13:35
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl left a comment

Choose a reason for hiding this comment

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

@ArturoManzoli everything seems fine here. Can I merge?

@ArturoManzoli
Copy link
Contributor Author

@ArturoManzoli everything seems fine here. Can I merge?

Yep, can merge!

@rafaellehmkuhl rafaellehmkuhl merged commit 63ebf5f into bluerobotics:master Oct 1, 2024
10 checks passed
@rafaellehmkuhl
Copy link
Member

@ArturoManzoli I was using edit-mode and noticed the problem came back:

image

Can you take a look?

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