mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes issue with intermediates size
Sorry @lstein !
This commit is contained in:
parent
72e011a4e4
commit
b8de5244b1
501
frontend/dist/assets/index.1fc0290b.js
vendored
501
frontend/dist/assets/index.1fc0290b.js
vendored
File diff suppressed because one or more lines are too long
829
frontend/dist/assets/index.4488003f.js
vendored
829
frontend/dist/assets/index.4488003f.js
vendored
File diff suppressed because one or more lines are too long
501
frontend/dist/assets/index.8eb7dfe4.js
vendored
501
frontend/dist/assets/index.8eb7dfe4.js
vendored
File diff suppressed because one or more lines are too long
690
frontend/dist/assets/index.ae92a637.js
vendored
690
frontend/dist/assets/index.ae92a637.js
vendored
File diff suppressed because one or more lines are too long
517
frontend/dist/assets/index.cc049b93.js
vendored
517
frontend/dist/assets/index.cc049b93.js
vendored
File diff suppressed because one or more lines are too long
517
frontend/dist/assets/index.e2832fd4.js
vendored
517
frontend/dist/assets/index.e2832fd4.js
vendored
File diff suppressed because one or more lines are too long
2
frontend/dist/index.html
vendored
2
frontend/dist/index.html
vendored
@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>InvokeAI - A Stable Diffusion Toolkit</title>
|
<title>InvokeAI - A Stable Diffusion Toolkit</title>
|
||||||
<link rel="shortcut icon" type="icon" href="./assets/favicon.0d253ced.ico" />
|
<link rel="shortcut icon" type="icon" href="./assets/favicon.0d253ced.ico" />
|
||||||
<script type="module" crossorigin src="./assets/index.1fc0290b.js"></script>
|
<script type="module" crossorigin src="./assets/index.a8ba2a6c.js"></script>
|
||||||
<link rel="stylesheet" href="./assets/index.40a72c80.css">
|
<link rel="stylesheet" href="./assets/index.40a72c80.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
10651
frontend/package-lock.json
generated
10651
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
import { IconButton, Image } from '@chakra-ui/react';
|
import { IconButton, Image, Spinner } from '@chakra-ui/react';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { FaAngleLeft, FaAngleRight } from 'react-icons/fa';
|
import { FaAngleLeft, FaAngleRight } from 'react-icons/fa';
|
||||||
import { RootState, useAppDispatch, useAppSelector } from '../../app/store';
|
import { RootState, useAppDispatch, useAppSelector } from '../../app/store';
|
||||||
@ -30,7 +30,6 @@ export const imagesSelector = createSelector(
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
imageToDisplay: intermediateImage ? intermediateImage : currentImage,
|
imageToDisplay: intermediateImage ? intermediateImage : currentImage,
|
||||||
isIntermediate: intermediateImage,
|
|
||||||
currentCategory,
|
currentCategory,
|
||||||
isOnFirstImage: currentImageIndex === 0,
|
isOnFirstImage: currentImageIndex === 0,
|
||||||
isOnLastImage:
|
isOnLastImage:
|
||||||
@ -56,7 +55,6 @@ export default function CurrentImagePreview() {
|
|||||||
isOnLastImage,
|
isOnLastImage,
|
||||||
shouldShowImageDetails,
|
shouldShowImageDetails,
|
||||||
imageToDisplay,
|
imageToDisplay,
|
||||||
isIntermediate,
|
|
||||||
} = useAppSelector(imagesSelector);
|
} = useAppSelector(imagesSelector);
|
||||||
|
|
||||||
const [shouldShowNextPrevButtons, setShouldShowNextPrevButtons] =
|
const [shouldShowNextPrevButtons, setShouldShowNextPrevButtons] =
|
||||||
@ -83,8 +81,8 @@ export default function CurrentImagePreview() {
|
|||||||
{imageToDisplay && (
|
{imageToDisplay && (
|
||||||
<Image
|
<Image
|
||||||
src={imageToDisplay.url}
|
src={imageToDisplay.url}
|
||||||
width={isIntermediate ? imageToDisplay.width : undefined}
|
width={imageToDisplay.width}
|
||||||
height={isIntermediate ? imageToDisplay.height : undefined}
|
height={imageToDisplay.height}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!shouldShowImageDetails && (
|
{!shouldShowImageDetails && (
|
||||||
|
2968
frontend/yarn.lock
2968
frontend/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user