GithubHelp home page GithubHelp logo

shadowaya / anchor-card Goto Github PK

View Code? Open in Web Editor NEW
34.0 4.0 1.0 169 KB

An anchor (scroll to) card for Home Assistant!

TypeScript 86.25% JavaScript 13.75%
custom-card hacs home-assistant home-automation lovelace lovelace-custom-card lovelace-ui scrolling

anchor-card's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

cesarrew

anchor-card's Issues

Grey line

Hi, how can I hide this grey line?

2024-02-28_214436

type: custom:anchor-card
anchor_id: top
negative_margin: 0px
offset: -50
timeout: 0ms

Doesn't work at all well

It reloads the page instead of simply scrolling to the relevant card.
The delay feature tries to help waiting for the 'reload' but variability on the view's cards speed of refresh make it unreliable or feel incredibly unresponsive.

Nice idea but currently unusable for me.

Problem when changing view

Hi.

I've been using this custom card for a few days now, but I'm having the following problem:

I have an icon at the top of my dashboard to scroll to a specifc card. It's working as expected. The problem is that when I change de view, the query string used to navigate to the card before goes with this new URL. So when I go back to the previous view, it scrolls automaticaly to the card I navigated before. I expected that when I exited the view, the query string would not be joined.

Do you have any idea how to solve this problem?

Thanks in advance.

Format of URL with anchor is nonstandard

I am not sure if this is intentional and needed in order for Home Assistant to parse the integration, but rather than using https://www.address.com/page?anchor=anchor_name the normal format for accessing an anchor is https://www.address.com/page#anchor_name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.