show thumbs on fullscreen by default

todo: full-res zoom
This commit is contained in:
2020-10-16 15:58:48 +00:00
committed by Stepan Usatiuk
parent 5d079a40af
commit c4a5faed81

View File

@@ -4,7 +4,7 @@ import { connect } from "react-redux";
import { Dispatch } from "redux";
import { IPhotoReqJSON } from "~../../src/entity/Photo";
import { LoadingStub } from "~LoadingStub";
import { getPhotoImgPath } from "~redux/api/photos";
import { getPhotoImgPath, getPhotoThumbPath } from "~redux/api/photos";
import { photoLoadStart } from "~redux/photos/actions";
import { IPhotoState } from "~redux/photos/reducer";
import { IAppState } from "~redux/reducers";
@@ -36,7 +36,7 @@ export const PhotoComponent: React.FunctionComponent<IPhotoComponentProps> = (
<img
id="photo"
loading="lazy"
src={getPhotoImgPath(props.photo)}
src={getPhotoThumbPath(props.photo, 2048)}
/>
</div>
) : (