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

100% width dont work on desktop #27

Closed
nelsonamen opened this issue Sep 1, 2023 · 10 comments
Closed

100% width dont work on desktop #27

nelsonamen opened this issue Sep 1, 2023 · 10 comments

Comments

@nelsonamen
Copy link

nelsonamen commented Sep 1, 2023

Hi
16936052675056510038293356947227

100% width dont work on desktop with no side bar
16936053324544638717700362654677

Its possible to have only the X for close in the pop up?
Thanks

@nelsonamen
Copy link
Author

On mobile works
On fully Kiosk browser dont

@nelsonamen
Copy link
Author

how i can change the part of the root?

type: custom:bubble-card
card_type: pop-up
hash: '#todasluzes'
state: sensor.luzesligadas
icon: mdi:lightbulb-group
name: ' '
margin_top_mobile: 0px
entity: null
width_desktop: 100%
card_mod:
style:
.: |

  ha-card {
    margin-top: 0 !important;
    background: none !important;
    border: none !important;
  }
  .card-content {
    width: 100% !important;
    padding: 0 !important;
  }

  @media only screen and (min-width: 870px)
  
  #root {
      top: calc(100% + 0px + 54px);
      width: calc(100% -92px) !important;
      left: calc(50% - 50% + 0px);
      margin: 0 !important;
  }

@dsellers1
Copy link

Wanted to throw this in here since it might be related. I noticed the popup at 90% appears under the sidebar when it is expanded.
Windows 11, Firefox 116.0, window sizes: 2560x1440 and 1480x1440.
firefox_QgeKQhtPNE
I removed the card_modded monstrosity in the screenshot just in case that was somehow messing with it but the results were the same.

When set to 100%, the popup expands up to the collapsed sidebar which could be the area that @nelsonamen showed in his screenshot. Changing to 110% does expand the popup under the collapsed sidebar but then it also pushes the close button off the screen. Attempting to change the z-index of the vertical-stack card via card mod does not bring the popup over the sidebar.

@nelsonamen
Copy link
Author

width: calc(100% -92px) !important;

  • 92px to 0 on the chrome inspector works
    How to do this on card mod?

@samuel9554
Copy link
Contributor

I think PR #18 could fix this one.

@Clooos
Copy link
Owner

Clooos commented Sep 4, 2023

Hi, this is fixed in the new beta with a is_sidebar_hidden variable that can be true or false.

@Clooos Clooos closed this as completed Sep 4, 2023
@nelsonamen
Copy link
Author

👍

@nelsonamen
Copy link
Author

nelsonamen commented Sep 30, 2023

@Clooos is there a new problem but with right side?

IMG_20230930_012257
IMG_20230930_012309

@Clooos
Copy link
Owner

Clooos commented Sep 30, 2023

Indeed! This issue will be fixed in the next beta.

@Clooos Clooos reopened this Sep 30, 2023
@Clooos
Copy link
Owner

Clooos commented Sep 30, 2023

This is now fixed in beta 11 :
https://github.com/Clooos/Bubble-Card/releases/tag/v0.0.1-beta.11

@Clooos Clooos closed this as completed Sep 30, 2023
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

4 participants