Skip to content

Make show source code feature be less visually intrusive (discreet) #525

@ssbarnea

Description

@ssbarnea

Is your feature request related to a problem? Please describe.

While "show source" is an extremely useful feature, Is just that I wish it would be less-in-your-face. If we could make it more subtle, like as simple [src] dimmed text after the member/method name, something that would not take any horizontal space on the page it would be much better.

Look at screenshot below an count how much vertical space is consumed by "show source code".

Describe the solution you'd like

Find a way to display the "source" button in a way that does not take more vertical space.

Describe alternatives you've considered

Additional context

Initially reported on #35 (comment)

Any suggestion on how this should be showed is welcomed. Probably having an icon is also an less intrusive way but I still think that it should be somewhere near the title of the element for which we will display the source and not after its documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requesthandler: pythonRelated to mkdocstrings-pythoninsidersCandidate for Insiders

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions