We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d6e31f + 9a99cf8 commit 3ad91e4Copy full SHA for 3ad91e4
streamlit_card/frontend/src/stCard.tsx
@@ -41,7 +41,7 @@ class Card extends StreamlitComponentBase {
41
height: `${height}px`,
42
borderRadius: "20px",
43
overflow: "hidden",
44
- backgroundImage: `url(${image})`,
+ backgroundImage: image ? `url(${image})` : "none",
45
backgroundPosition: "center",
46
backgroundSize: "cover",
47
backgroundRepeat: "no-repeat",
0 commit comments