Skip to content

Commit d68e29e

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

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
@@ -87,18 +87,19 @@ export const CardWrapper = styled.div`
8787
}
8888
8989
.post-content-block {
90-
padding: 1rem 2rem;
90+
padding: 1rem 1rem 1.5rem 1rem;
9191
padding-bottom: 1.5rem;
9292
height: auto;
93-
min-height: 9rem;
93+
min-height: 10rem;
9494
display: flex;
9595
flex-direction: column;
9696
justify-content: space-between;
9797
}
9898
9999
@media screen and (max-width: 1200px) and (min-width: 992px) {
100100
.post-thumb-block {
101-
height: 12rem;
101+
height: auto;
102+
min-height: 10rem;
102103
}
103104
104105
.post-content-block {
@@ -124,8 +125,9 @@ export const CardWrapper = styled.div`
124125
.post-title {
125126
font-size: 1.4rem;
126127
font-weight: 400;
127-
margin: 0 -1rem 0.5rem -1rem;
128-
padding: 0 1rem;
128+
margin: 0 0 0.5rem 0;
129+
padding: 0 ;
130+
129131
white-space: normal !important;
130132
display: -webkit-box;
131133
-webkit-line-clamp: 2;
@@ -135,6 +137,7 @@ export const CardWrapper = styled.div`
135137
}
136138
137139
.post-meta-block {
140+
padding: 0 1rem;
138141
height: auto;
139142
display: flex;
140143
margin-bottom: 0.5rem;
@@ -166,6 +169,7 @@ export const CardWrapper = styled.div`
166169
}
167170
168171
.readmore-btn-wrapper {
172+
padding: 0 1rem;
169173
display: flex;
170174
justify-content: flex-start;
171175
}

0 commit comments

Comments
 (0)