Skip to content

Add a title attribute to sidebar links #1842

Closed
@yasoob

Description

@yasoob

Hi! I apologize in advance if this is not the best place to create this issue. I had a feature request for the online hexdocs viewer.

Currently when a sidebar link is too long, it is very hard to see what the actual link is. This issue is prevalent in Ash docs:

image

As you can see, it is very hard to tell what comes after "TokenResource" in all of the sidebar entries.

Is it possible to maybe add a handle to expand the sidebar width and store the width value in localStorage? This would let the user expand it as much as they want and have the current width as a sane default.

One other easier option for now is to add a "title" attribute to the sidebar links. This at least would let the user hover over the sidebar link to see what the full link is. For example:

image

This should be fairly trivial to implement. We can simply use the "href" value and set it as the title attribute as well (which is what I did in the example above).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions