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

Sidebar size issue with a statistic graph card on a Sidebar view #20864

Open
4 tasks done
mbo18 opened this issue May 24, 2024 · 1 comment
Open
4 tasks done

Sidebar size issue with a statistic graph card on a Sidebar view #20864

mbo18 opened this issue May 24, 2024 · 1 comment

Comments

@mbo18
Copy link
Contributor

mbo18 commented May 24, 2024

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

There is a bug with the sidebar view type : the sidebar on the left is really small compared to the energy dashboard when there is a statistic graph card in the view:

Capture d’écran 2024-05-24 à 14 52 24

Size is OK when in edit mode:

Capture d’écran 2024-05-24 à 15 26 00

Describe the behavior you expected

Size of the left bar/column should be the same size when there is a statistic graph card in the view or not

Steps to reproduce the issue

  1. Add a new view with View type set to "Sidebar"
  2. Add a gauge and move it to the left
  3. Add another card that is not a statistic graph card
  4. Save the view, the size of the left column with the gauge card is OK
  5. Edit the view, add a statistic graph card and save the view
  6. The size of the left column with the gauge card is NOK

What version of Home Assistant Core has the issue?

core-2024.5.4

What was the last working version of Home Assistant Core?

don't know

In which browser are you experiencing the issue with?

Firefox, Safari latest release

Which operating system are you using to run this browser?

macOS and Windows 11

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

@ildar170975
Copy link
Contributor

In my experience, a sidebar's width depends both on cards "on the left" & cards on the sidebar itself.
Managed to set a fixed width with a card-mod theme , kind of

  hui-sidebar-view:
    $: |
      .container div#sidebar {
        min-width: .........;
        width: -webkit-fill-available;
      }

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

No branches or pull requests

2 participants