He’s talking about the cards in the swipe card itself as swipe cards. You say that Vandaag and the two cards below it are in the swipe. But what cards show up when actually SWIPE? We don’t see thsoe cards on a screenshot. Most likely that card is taller, which is why the container is larger. You can prevent this by using autoHeight parameter.
parameters:
autoHeight: true
Also: if asking for help, posting just a screenshot will only waste time of others trying to guess, like we’re doing now. Just post your relevant code and your issue with a screenshot, so others actually know what your setup is.
And what is idea behind using a vertical stack in a grid card that exist of just 1 column. Only the vertical stack will give you the same (and even beter result as it does not square the contents inside)
If you don’t want a square, changing this would help:
- square: true
type: grid
Don’t see why you use square for gird, when you clearly don’t want a square card? Set that to false for all grid cards you don’t want to force as a square, but adapt to cards inside it.
The issue is that Swiper Card content renders blank on page refresh and requires 2-4 further refreshes for the card content to appear. See it in action here (Google Photos link).
I’ve tried the following:
Removing Swiper Card and leaving only one of three custom:webrtc-camera cards. The issue disappears, suggesting that the issue is linked to the Swiper Card.
Updated Fully Kiosk Browser and Fire Tablet to the latest OS to ensure the latest version of webview is used. This didn’t fix the issue.
Tried toggling between hardware and software acceleration in Fully Kiosk Browser. This didn’t fix the issue.
This appears to be caused by some form of conflict between the Fully Kiosk Browser and Swiper Card, but I can’t point out what it is.
I’d really appreciate any help in finding the root cause.
one question… is it somehow possible to track which slide is currently shown? I would like to show other elements in the view based on which slide is shown… any ideas / suggestions? Thx.
Based on docs for Swiper API this integration is based on there’s a swiper.activeIndex property that holds “Index number of currently active slide”. If you can refer to this property somehow, you could achieve what you’re looking for potentially.
I’m building a card that displays a subset of cards relative to conditions in combination with the awesome swiper card. For example, when my partner is driving home, the derivative of her travel time is negative, so I add a map card to the swipe based on this condition. When it is bedtime for the kids, I add a card with camera’s, etc. Swipe card allows me to save a lot of space with this approach, which is inspired by the Android Auto cards (that aim to display relevant info). I’m running into a very specific problem, however, with the custom cards I’ve designed.
A minimal working example is below. When embedding a tile card in a custom:button-card, on an android mobile device, the touch events are not caught by the swipe card. If you happen to gesture on the dots, or in the margin of the button-card, then you can still swipe. It might be a peculiar combination, but I’m quite happy with the “glance cards” I made using button-card and tile cards. Anyone have any idea if this is a bug, or how else to investigate the issue? Happy to provide more info or help the search. On a desktop browser (e.g., Firefox) there is no issue, it works fine.
Hello, I am new to this forum.
I use the swipe-card very extensively in my dashboard (thx) and wanted to know it is possible to automatically switch the focus to the corresponding card for a certain event.
A concrete example would be, if the load of my monitored server reaches a certain threshold, I would like the corresponding card to be displayed without having to swipe myself.
Is this possible?
Thank you very much for an answer.
No, not properly. The post right after mine suggested the use of the parameter loop: true did allow you to wrap around, but worked only under certain conditions (which I don’t recall anymore) and ultimately didn’t behave the way I hoped it would.
Give it a try, maybe I just wasn’t using it correctly. I just gave up on it because it was a nice to have but didn’t bother me enough if I couldn’t get it to work.
Maybe here is someone who is able to help me: I need the content of the swipe card stretched. Without swipe-card the graph fits fine. The swiper-card element needs display: flex. Or is there an option that children gets maximized to swiper cards size? Had no luck with card-mod. Maybe there is another option I don’t know.
The swiper card itself has the right size but the content card doesn’t get stretched/fit to it.