Feature Request: Set end of PopUp Card. Adjust height #305
Replies: 7 comments 1 reply
-
My yaml type: vertical-stack
|
Beta Was this translation helpful? Give feedback.
-
Hi! You can change the |
Beta Was this translation helpful? Give feedback.
-
I think he means something else. It would be useful if you could set a minimum size for the popup and it would only get bigger when there is more content. |
Beta Was this translation helpful? Give feedback.
-
I love it! I will add that in a future release. |
Beta Was this translation helpful? Give feedback.
-
That would be absolutely great! I have dynamic content for the pop-up (lights or covers that are on/open/closed). It would be great to have the size of the pop-up aligned with the content. |
Beta Was this translation helpful? Give feedback.
-
So I'm hooking up here. Use-Case: Mobile view (with sticky footer icons to trigger popups). I've my phone in my hand and tap on the "open-popup-btn" and the popup opens: Now I have to move up all the way to the buttons and cross the blank space. Much better UX would be this: The target buttons are near the thumb and I can click it right the way. I know, there is margin but what about changing the CSS to something like .pop-up {
height: auto;
top: unset;
bottom: 0;
transform: translateY(100%);
}
.pop-up.open-pop-up {
transform: translateY(0);
} Edit: A working solutionThis example displays all Scenes in a popup tied to the bottom: type: vertical-stack
cards:
- type: custom:bubble-card
card_type: pop-up
hash: '#popup'
name: Scenes
styles: |
#root.pop-up {
height: auto;
top: unset;
bottom: 0;
transform: translateY(100%);
padding: 18px;
}
#root.pop-up.open-pop-up {
transform: translateY(0);
}
- type: custom:auto-entities
card:
square: false
type: grid
card_param: cards
filter:
include:
- domain: scene
options:
type: custom:button-card
entit: this.entity_id
size: 50px
tap_action:
action: call-service
service: scene.turn_on
data:
entity_id: entity
exclude: [] This looks not very nice so we should it display centered on desktop |
Beta Was this translation helpful? Give feedback.
-
And something for deskopt: @media only screen and (min-width: 450px) {
#root.pop-up.open-pop-up {
transform: scale(1) translate(0, -50%);
display: flex;
}
#root.pop-up {
top: calc(50% + var(--header-height));
transform: scale(0) translate(0, 50%);
display: none;
max-height: 100%
}
} |
Beta Was this translation helpful? Give feedback.
-
I can't find a way to adjust the height of the pop up card.
It's always OpenEnd...
Thanks, its a perfect Project.
Beta Was this translation helpful? Give feedback.
All reactions