More actions
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
align-items: center; | align-items: center; | ||
width: 200px; | width: 200px; | ||
height: 320px; /* 👈 New fixed height */ | |||
background: #fff; | background: #fff; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
Line 45: | Line 46: | ||
.card-description { | .card-description { | ||
font-size: 0. | font-size: 0.65em; | ||
color: #444; | color: #444; | ||
margin-top: 0.5rem; | margin-top: 0.5rem; | ||
Line 54: | Line 55: | ||
word-break: break-word; | word-break: break-word; | ||
flex-grow: 1; /* 👈 Let it expand to fill available vertical space */ | |||
width: 100%; | width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
overflow: hidden; | |||
} | } | ||
.card-description * { | .card-description * { |
Revision as of 01:39, 25 May 2025
/* CSS placed here will be applied to all skins */ .card-carousel { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; /* critical: lets tall cards grow down, not squish */ overflow-x: auto; gap: 1rem; padding: 1rem; } .card-carousel::-webkit-scrollbar { height: 6px; } .card-carousel::-webkit-scrollbar-thumb { background: #999; border-radius: 3px; } .card { display: flex; flex-direction: column; align-items: center; width: 200px; height: 320px; /* 👈 New fixed height */ background: #fff; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; padding: 0; margin: 0; } .image-wrapper { padding: 0; margin: 0; line-height: 0; /* removes spacing from inline image rendering */ } .image-wrapper img { max-width: 100%; height: auto; display: block; } .card-description { font-size: 0.65em; color: #444; margin-top: 0.5rem; text-align: center; padding: 0 0.5rem; white-space: normal; overflow-wrap: anywhere; word-break: break-word; flex-grow: 1; /* 👈 Let it expand to fill available vertical space */ width: 100%; box-sizing: border-box; overflow: hidden; } .card-description * { white-space: normal !important; overflow-wrap: anywhere !important; word-break: break-word !important; } .no-display { display: none; }