J'ai développé 4 cartes bootstrap dans 4 colonnes différentes. Dans chacune de ces cartes, j'ai créé une nouvelle carte qui contient un certain type d'information.
Mon problème est que le texte sort de la carte lorsque je réduis la taille de l'écran (test responsive). Quel est mon problème et comment puis-je le résoudre ?
Gracias.
.cardsZone {
margin-top: 2%;
width: 80%;
height: 100%;
margin-right: auto;
margin-left: auto;
}
.myCards {
background: #E7EAF180 0% 0% no-repeat padding-box;
box-shadow: 0px 3px 20px #BCBCCB47;
border-radius: 8px;
border: none;
height: 100%;
}
.card-deck .card {
margin-left: 0px;
}
.mysmallCcards {
width: 100%;
background: #FFFFFF 0% 0% no-repeat padding-box;
box-shadow: 0px 3px 20px #BCBCCB47;
border-radius: 8px;
border: none;
margin-top: 20px;
}
.card-header:first-child {
border-radius: calc(9px - 1px) calc(9px - 1px) 0 0;
}
.mycardHeader {
background-color: white;
padding: 8px;
}
.imgDash {
width: 40px;
height: 40px;
border-radius: 8px;
}
.brandName {
text-align: left;
font-family: 'Noto Sans', sans-serif;
font-size: 22px;
letter-spacing: 0;
color: #4D4F5C;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 0px;
}
.subtitledash {
text-align: left;
font-family: 'Noto Sans', sans-serif;
font-size: 13px;
font-weight: bold;
;
letter-spacing: 0;
color: #4D4F5C;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 28px;
}
.imgusersDash {
width: 24px;
height: 24px;
transform: matrix(1, 0, 0, 1, 0, 0);
border-radius: 8px;
}
.usrDash {
margin-top: 2px;
width: 24px;
height: 24px;
border-radius: 8px;
line-height: 24px;
text-align: center;
background: #4981C226;
font-size: 13px;
font-family: 'Noto Sans', sans-serif;
letter-spacing: 0;
color: #4981C2;
}
.p1 {
background: #EFF0F2 0% 0% no-repeat padding-box;
border-radius: 4px;
font-size: 13px;
font-family: 'Noto Sans', sans-serif;
letter-spacing: 0;
color: #BCBCCB;
padding: 3px 7px 3px 8px;
text-align: center;
}
.duracaoDash {
background: #D9DAE2 0% 0% no-repeat padding-box;
border-radius: 4px;
font-size: 13px;
font-family: 'Noto Sans', sans-serif;
color: #BCBCCB;
}
.card-body {
-ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 8px;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" />
<div class="six" style="height: 75%;">
<div class="card-deck cardsZone">
<div class="card myCards">
<div class="card-body" style="overflow-y: auto; overflow-x:hidden;">
<div>
<div class="card mysmallCcards">
<div class="card-header mycardHeader">
<div class="d-flex">
<div class="p-2">
<img src="https://lh3.googleusercontent.com/GSwsSV5GzGFyheupOV4x6deWq7yekyqbpOF_wp5wrfhCNjiDYu1pxYTbYNTip-e6Xi0" class="img-responsive imgDash">
</div>
<div class="p-2">
<span class="brandName card-title card-text">Settings in the world</span>
<p class="subtitledash card-subtitle card-text">Test Settings</p>
</div>
</div>
</div>
<div class="card-body">
<div class="d-flex">
<div class="p-2">
<img src="https://lh3.googleusercontent.com/GSwsSV5GzGFyheupOV4x6deWq7yekyqbpOF_wp5wrfhCNjiDYu1pxYTbYNTip-e6Xi0" class="img-responsive imgusersDash">
</div>
</div>
<div class="d-flex">
<div class="p-2">
<span class="p1">1</span>
</div>
<div class="p-2">Flex item</div>
<div class="ml-auto p-2"> <span class="duracaoDash">00:00:00</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card myCards">
<div class="card-body" style="overflow-y: auto;">
<div>
<div class="card mysmallCcards">
<div class="card-header mycardHeader">
<div class="d-flex">
<div class="p-2">
<img src="https://lh3.googleusercontent.com/GSwsSV5GzGFyheupOV4x6deWq7yekyqbpOF_wp5wrfhCNjiDYu1pxYTbYNTip-e6Xi0" class="img-responsive imgDash">
</div>
<div class="p-2">
<span class="brandName card-title card-text">Settings in the world</span>
<p class="subtitledash card-subtitle card-text">Test Settings</p>
</div>
</div>
</div>
<div class="card-body">
<div class="d-flex">
<div class="p-2">
<img src="https://lh3.googleusercontent.com/GSwsSV5GzGFyheupOV4x6deWq7yekyqbpOF_wp5wrfhCNjiDYu1pxYTbYNTip-e6Xi0" class="img-responsive imgusersDash">
</div>
</div>
<div class="d-flex">
<div class="p-2">
<span class="p1">1</span>
</div>
<div class="p-2">Flex item</div>
<div class="ml-auto p-2"> <span class="duracaoDash">00:00:00</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card myCards">
<div class="card-body" style="overflow-y: auto;">
<div>
<div class="card mysmallCcards">
<div class="card-header mycardHeader">
<div class="d-flex">
<div class="p-2">
<img src="https://lh3.googleusercontent.com/GSwsSV5GzGFyheupOV4x6deWq7yekyqbpOF_wp5wrfhCNjiDYu1pxYTbYNTip-e6Xi0" class="img-responsive imgDash">
</div>
<div class="p-2">
<span class="brandName card-title card-text">Settings in the world</span>
<p class="subtitledash card-subtitle card-text">Test Settings</p>
</div>
</div>
</div>
<div class="card-body">
<div class="d-flex">
<div class="p-2">
<img src="https://lh3.googleusercontent.com/GSwsSV5GzGFyheupOV4x6deWq7yekyqbpOF_wp5wrfhCNjiDYu1pxYTbYNTip-e6Xi0" class="img-responsive imgusersDash">
</div>
</div>
<div class="d-flex">
<div class="p-2">
<span class="p1">1</span>
</div>
<div class="p-2">Flex item</div>
<div class="ml-auto p-2"> <span class="duracaoDash">00:00:00</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card myCards">
<div class="card-body" style="overflow-y: auto;">
<div>
<div class="card mysmallCcards">
<div class="card-header mycardHeader">
<div class="d-flex">
<div class="p-2">
<img src="https://lh3.googleusercontent.com/GSwsSV5GzGFyheupOV4x6deWq7yekyqbpOF_wp5wrfhCNjiDYu1pxYTbYNTip-e6Xi0" class="img-responsive imgDash">
</div>
<div class="p-2">
<span class="brandName card-title card-text">Settings in the world</span>
<p class="subtitledash card-subtitle card-text">Test Settings</p>
</div>
</div>
</div>
<div class="card-body">
<div class="d-flex">
<div class="p-2">
<img src="https://lh3.googleusercontent.com/GSwsSV5GzGFyheupOV4x6deWq7yekyqbpOF_wp5wrfhCNjiDYu1pxYTbYNTip-e6Xi0" class="img-responsive imgusersDash">
</div>
</div>
<div class="d-flex">
<div class="p-2">
<span class="p1">1</span>
</div>
<div class="p-2">Flex item</div>
<div class="ml-auto p-2"> <span class="duracaoDash">00:00:00</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Problème