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

Improve Map UX, move help text to Bootstrap's Offcanvas component #1981

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

S33G
Copy link
Contributor

@S33G S33G commented Apr 9, 2024

I feel this information is useful, but once you know it you don't need to keep reading it.
I moved it to a Offcanvas component and added a fixed position button to open the Offcanvas sidebar.

Before:
image

After:
image

@@ -32,7 +32,7 @@ export class MapComponent extends Component<PropsFromStore & MapApi & WithTransl
width: 0,
height: 0,
visibleLinks: defaultVisibleRelationsLinks,
legendIsVisible: true,
legendIsVisible: false,
Copy link
Owner

Choose a reason for hiding this comment

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

I like this idea, can you please persist this flag into local storage? example code here

@Nerivec
Copy link

Nerivec commented Apr 23, 2024

Has this been tested when frontend is opened inside HA? How does this behaves when the offcanvas is nested inside HA's UI?

@S33G S33G mentioned this pull request Apr 26, 2024
Closed
@S33G
Copy link
Contributor Author

S33G commented Apr 26, 2024

Has this been tested when frontend is opened inside HA? How does this behaves when the offcanvas is nested inside HA's UI?

It hasn't. Though very good point.
I don't run it inside Home Assistant, could you suggest a way I could test it?

Or perhaps would you mind testing it?

@nurikk
Copy link
Owner

nurikk commented May 16, 2024

hey @S33G I'm working on a new map implementation, can you please have a look at map2.0 branch?

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.

None yet

3 participants