Skip to content

Commit f3fd95a

Browse files
committed
ui: refactor card padding to fix resource overlap
Signed-off-by: Ansh Sharma <anshsharma161105@gmail.com>
1 parent 43855e1 commit f3fd95a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/components/Card/Card.style.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,19 @@ export const CardWrapper = styled.div`
7474
}
7575
7676
.post-content-block {
77-
padding: 1rem 2rem;
77+
padding: 1rem 1rem 1.5rem 1rem;
7878
padding-bottom: 1.5rem;
7979
height: auto;
80-
min-height: 9rem;
80+
min-height: 10rem;
8181
display: flex;
8282
flex-direction: column;
8383
justify-content: space-between;
8484
}
8585
8686
@media screen and (max-width: 1200px) and (min-width: 992px) {
8787
.post-thumb-block {
88-
height: 12rem;
88+
height: auto;
89+
min-height: 10rem;
8990
}
9091
9192
.post-content-block {
@@ -111,8 +112,9 @@ export const CardWrapper = styled.div`
111112
.post-title {
112113
font-size: 1.4rem;
113114
font-weight: 400;
114-
margin: 0 -1rem 0.5rem -1rem;
115-
padding: 0 1rem;
115+
margin: 0 0 0.5rem 0;
116+
padding: 0 ;
117+
116118
white-space: normal !important;
117119
display: -webkit-box;
118120
-webkit-line-clamp: 2;
@@ -122,6 +124,7 @@ export const CardWrapper = styled.div`
122124
}
123125
124126
.post-meta-block {
127+
padding: 0 1rem;
125128
height: auto;
126129
display: flex;
127130
margin-bottom: 0.5rem;
@@ -153,6 +156,7 @@ export const CardWrapper = styled.div`
153156
}
154157
155158
.readmore-btn-wrapper {
159+
padding: 0 1rem;
156160
display: flex;
157161
justify-content: flex-start;
158162
}

0 commit comments

Comments
 (0)