Skip to content

Commit aae28e6

Browse files
committed
Optimize size
1 parent 5aa5305 commit aae28e6

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/containers/post/RelatedPostAd.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function RelatedPostAd({ isMobile }: Props) {
1616
className="adsbygoogle"
1717
style={{ display: 'block' }}
1818
data-ad-format="fluid"
19-
data-ad-layout-key="-g0+63+39-d3+b4"
19+
data-ad-layout-key="-gh+5l+k-cu+l4"
2020
data-ad-client="ca-pub-5574866530496701"
2121
data-ad-slot="8237449336"
2222
/>

src/containers/post/RelatedPostsForGuest.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function RelatedPostsForGuest({
8585
to={`/@${post.user.username}/${post.url_slug}`}
8686
key={post.id ?? index}
8787
>
88-
<div className="fourty">
88+
<div className="left">
8989
<div className="thumbnail-wrapper">
9090
<img
9191
src={optimizeImage(
@@ -229,9 +229,9 @@ const StyledRowLink = styled(Link)`
229229
text-decoration: none;
230230
color: inherit;
231231
display: flex;
232-
.fourty {
233-
width: 40%;
234-
margin-right: 0.75rem;
232+
.left {
233+
width: 35%;
234+
margin-right: 0.5rem;
235235
}
236236
.thumbnail-wrapper {
237237
width: 100%;
@@ -255,19 +255,21 @@ const StyledRowLink = styled(Link)`
255255
}
256256
h5 {
257257
margin-top: 0;
258-
margin-bottom: 0.5rem;
259-
font-size: 0.875rem;
258+
margin-bottom: 0;
259+
font-size: 0.75rem;
260260
color: ${palette.gray8};
261-
${ellipsis}
261+
font-size: 0.75rem;
262+
263+
line-height: 1.5;
262264
}
263265
264266
p {
265267
margin: 0;
266-
font-size: 0.75rem;
268+
font-size: 0.6875rem;
267269
display: -webkit-box;
268270
-webkit-line-clamp: 2;
269271
line-height: 1.5;
270-
height: 2.25rem;
272+
height: 2.0625rem;
271273
overflow: hidden;
272274
word-break: keep-all;
273275
color: ${palette.gray6};

0 commit comments

Comments
 (0)