There was an error while loading. Please reload this page.
1 parent 54ac1a0 commit 2a65c54Copy full SHA for 2a65c54
1 file changed
src/posts/articles/list/LatestArticle.tsx
@@ -18,6 +18,17 @@ const Wrapper = styled.div`
18
@media ${Device.mobile} {
19
display: none;
20
}
21
+ a {
22
+ display: block;
23
+ width: 100%;
24
+ height: 100%;
25
+ color: inherit;
26
+ text-decoration: none;
27
+ }
28
+
29
+ &:hover {
30
+ opacity: 0.8;
31
32
`;
33
34
const Sections = styled.div`
@@ -31,6 +42,17 @@ const Sections = styled.div`
42
43
const ImageSection = styled.div`
44
flex: 3;
45
46
47
+ position: relative;
48
+ overflow: hidden;
49
50
+ img {
51
52
53
+ object-fit: cover;
54
+ object-position: center;
55
56
35
57
36
58
const TextSection = styled.div`
0 commit comments