Skip to content

Commit

Permalink
Merge pull request #6053 from NishantSinghhhhh/Design/Component_card
Browse files Browse the repository at this point in the history
Added ellipsis in card
  • Loading branch information
sudhanshutech authored Nov 4, 2024
2 parents 360f670 + 8de89d2 commit b78a103
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/sections/Projects/Sistent/sistent.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,13 +645,15 @@ const SistentWrapper = styled.div`
.product_cards .card {
width: 400px;
height: 280px;
display: flex;
flex-direction: column;
justify-content: space-between;
border-radius: 20px;
background-color: ${(props) => props.theme.grey212121ToGreyF0F0F0};
padding: 2rem;
}
.logo {
max-height: 3rem;
}
Expand All @@ -675,14 +677,20 @@ const SistentWrapper = styled.div`
color: ${props => props.theme.text};
}
.card .text {
padding-top: 1rem;
padding-bottom: 2rem;
font-size: 16px;
font-style: normal;
font-weight: 400;
color: ${(props) => props.theme.whiteToBlack};
}
.card .text {
padding-top: 1rem;
padding-bottom: 2rem;
font-size: 16px;
font-style: normal;
font-weight: 400;
color: ${(props) => props.theme.whiteToBlack};
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
max-height: calc(1.5rem * 4);
}
.card {
box-shadow: 0px 2px 6px 0px ${props => props.theme.green00D3A9ToBlackTwo};
Expand Down

0 comments on commit b78a103

Please sign in to comment.