fix: Unsplash stats on photo info

This commit is contained in:
alexsparkes 2023-09-13 22:34:24 +01:00
parent c5689556d9
commit ede25cc513
2 changed files with 15 additions and 1 deletions

View File

@ -271,7 +271,7 @@ function PhotoInformation({ info, url, api }) {
{photo} {credit}
</span>
{info.views && info.downloads !== null ? (
<div className="stats">
<div className="unsplashStats">
<div title={variables.getMessage('widgets.background.views')}>
<Views />
<span>{info.views.toLocaleString()}</span>

View File

@ -449,3 +449,17 @@
}
}
}
.unsplashStats {
display: flex;
flex-flow: row;
justify-content: space-between;
gap: 40px;
margin-right: 40px;
div {
display: flex;
flex-flow: row;
gap: 10px;
align-items: center;
}
}