File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ My personal blog, made with the following technologies:
12
12
- [ ] add internal links between posts
13
13
- [ ] fix tags associated with unpublished posts to not be displayed
14
14
- [ ] prevent top-of-post list bullets from being rendered where post image gets rendered prior to image being rendered
15
+ - [ ] what's going on with the flicker on the background of the most recent post when dark/light modes are toggled?
15
16
- [ ] store theme preference in local storage
16
17
- [ ] add logic that checks if manual published date is set before sorting
17
18
- [ ] change how aside is serialized from asterisk
Original file line number Diff line number Diff line change @@ -3,20 +3,23 @@ import styled from 'styled-components'
3
3
4
4
const PostImgContainer = styled . div `
5
5
position: relative;
6
- margin: 2.5em 0 ;
6
+ margin: 2.5em auto ;
7
7
`
8
8
const PostImg = styled . img `
9
9
position: relative;
10
- /* top: 0;
11
- left: 0; */
12
- display: block;
13
- width: 100%;
10
+ max-width: 100%;
11
+ height: auto;
14
12
transition: opacity 400ms ease 0ms;
13
+ /* width: 100%; */
14
+ /* TODO: what exactly were these supposed to be doing? */
15
+ /* top: 0;
16
+ left: 0;
17
+ display: block; */
15
18
`
16
19
const PostLqipImg = styled ( PostImg ) `
17
20
position: absolute;
18
21
/* width: 100%; */
19
- /* TODO: what exactly are these supposed to be doing? */
22
+ /* TODO: what exactly were these supposed to be doing? */
20
23
/* transform: scale(1);
21
24
transition: visibility 0ms ease 400ms; */
22
25
`
@@ -25,7 +28,7 @@ const PhotoCredit = styled.p`
25
28
`
26
29
27
30
function PostImage ( props ) {
28
- // console.log('PI props: ', props)
31
+ console . log ( 'Image props: ' , props )
29
32
const [ isLoaded , setIsLoaded ] = useState ( false ) ;
30
33
// const [fullImgUrl, setFullImgUrl] = useState(null)
31
34
// const [lqipImgUrl, setLqipImgUrl] = useState(null)
Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ const CodeNote = styled.p`
85
85
const ExternalLink = styled . a `
86
86
text-decoration: underline;
87
87
color: ${ ( { theme } ) => theme . articleLinks } ;
88
+ /* display:inline-block; */
89
+ word-break: break-word;
88
90
`
89
91
const Button = styled . button `
90
92
font-size: .8em;
You can’t perform that action at this time.
0 commit comments