Skip to content

minWidth: true doesn't not minimize width to icon size #91

Description

@Mariusthvdb

not sure if (where) we've discussed this before, so please allow me a dedicated issue on the matter.

using a main

type: custom:tabbed-card
attributes:
  minWidth: true
  isMinWidthIndicator: true

config one a set of tabbed cards only using an icon in the tab, still makes the card tabs go beyond the width of a single card, and added to that, we can not swipe it really. the overflow icon somewhat comes in sight when the one next to it is activated, but there's no real swiping the tabs

Maybe I am misconfiguring, if so please correct, but I would have hoped that 4 or 5 icons only should be able to be seen directly and not have it look like:

Scherm­afbeelding 2023-02-21 om 13 28 47

Scherm­afbeelding 2023-02-21 om 13 29 17

seems the minWidth indicator is working correctly, because this is without. As you can see, the tabs are just as wide in both configurations.
Scherm­afbeelding 2023-02-21 om 13 28 23

of course, I have also tried to set that option on the card itself:

    attributes:
      icon: mdi:home-roof
      minWidth: true

to no avail though, no difference at all
Please have a look why those tabs are not tighter, just as tight as the indicator

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions