mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 23:37:48 +01:00
show thumbs on fullscreen by default
todo: full-res zoom
This commit is contained in:
@@ -4,7 +4,7 @@ import { connect } from "react-redux";
|
|||||||
import { Dispatch } from "redux";
|
import { Dispatch } from "redux";
|
||||||
import { IPhotoReqJSON } from "~../../src/entity/Photo";
|
import { IPhotoReqJSON } from "~../../src/entity/Photo";
|
||||||
import { LoadingStub } from "~LoadingStub";
|
import { LoadingStub } from "~LoadingStub";
|
||||||
import { getPhotoImgPath } from "~redux/api/photos";
|
import { getPhotoImgPath, getPhotoThumbPath } from "~redux/api/photos";
|
||||||
import { photoLoadStart } from "~redux/photos/actions";
|
import { photoLoadStart } from "~redux/photos/actions";
|
||||||
import { IPhotoState } from "~redux/photos/reducer";
|
import { IPhotoState } from "~redux/photos/reducer";
|
||||||
import { IAppState } from "~redux/reducers";
|
import { IAppState } from "~redux/reducers";
|
||||||
@@ -36,7 +36,7 @@ export const PhotoComponent: React.FunctionComponent<IPhotoComponentProps> = (
|
|||||||
<img
|
<img
|
||||||
id="photo"
|
id="photo"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
src={getPhotoImgPath(props.photo)}
|
src={getPhotoThumbPath(props.photo, 2048)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user