Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reading time used to wrap to a new row, thereby distancing the reading time icon from the duration
Summary
I used the default Bootstrap 'text-nowrap' class to make sure that the reading time doesn't wrap to the next line without the icon. I checked this with all window sizes and it seems to work well in Chrome and Safari.
Basic example
new:
![Schermafbeelding 2024-01-14 om 21 41 02](https://private-user-images.githubusercontent.com/30504008/296616216-4f50ef01-7e43-47aa-932e-03ef78d5aedf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MjU3NTQsIm5iZiI6MTcyMTkyNTQ1NCwicGF0aCI6Ii8zMDUwNDAwOC8yOTY2MTYyMTYtNGY1MGVmMDEtN2U0My00N2FhLTkzMmUtMDNlZjc4ZDVhZWRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDE2MzczNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5ZWYyMDJjZTdlNjI4ZjBmM2Y3NmZlMWYxOGY1NDUwNWE5NDU4MDZmYWM1MGM4YmJmYTkzNWQzYjkyYzRiYjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ytkCkaXbFRpnyG8qg4XoNU-dG0GSbNQhBq-5Bu-iLkM)
old:
![Schermafbeelding 2024-01-14 om 21 40 43](https://private-user-images.githubusercontent.com/30504008/296616235-f62b86cb-7c94-43f1-a530-f5242f42b275.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MjU3NTQsIm5iZiI6MTcyMTkyNTQ1NCwicGF0aCI6Ii8zMDUwNDAwOC8yOTY2MTYyMzUtZjYyYjg2Y2ItN2M5NC00M2YxLWE1MzAtZjUyNDJmNDJiMjc1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDE2MzczNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwNGUzYTkxZTRmYTk1ZmZlOGM5NjQzYWM4YzRiNWQxN2NkY2VmMzgwMGZhMDAzNDFkODA2Y2Q5MTllMzU3OTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tyzLoHOpsTAiZVWSmFojKrLOV_wCi1KsViL4skfhG50)
Motivation
The old method looked a bit ugly on certain screen sizes (especially mobile and with multiple authors). I also changed the margin-left from reading-time to 1rem, because I think the default is a bit too much. That's why my screenshot might look a little bit different. Nevertheless, I believe that the icon should always be on the same line as the duration.
Checks
npm run test