diff --git a/frontend/src/app/App.scss b/frontend/src/app/App.scss
index 043c36c036..1995a5053d 100644
--- a/frontend/src/app/App.scss
+++ b/frontend/src/app/App.scss
@@ -2,20 +2,18 @@
.App {
display: grid;
- width: max-content;
+ width: 100vw;
+ height: 100vh;
+ background-color: var(--background-color);
}
.app-content {
display: grid;
- row-gap: 1rem;
- margin: 0.6rem;
- padding: 1rem;
- border-radius: 0.5rem;
- background-color: var(--background-color);
+ row-gap: 0.5rem;
+ padding: $app-padding;
grid-auto-rows: max-content;
width: $app-width;
height: $app-height;
- min-width: min-content;
}
.app-console {
diff --git a/frontend/src/features/gallery/CurrentImageDisplay.scss b/frontend/src/features/gallery/CurrentImageDisplay.scss
index 3fefcc80cb..89230ae751 100644
--- a/frontend/src/features/gallery/CurrentImageDisplay.scss
+++ b/frontend/src/features/gallery/CurrentImageDisplay.scss
@@ -7,9 +7,6 @@
row-gap: 1rem;
background-color: var(--background-color-secondary);
border-radius: 0.5rem;
- &[data-tab-name='txt2img'] {
- height: $app-text-to-image-height;
- }
}
.current-image-options {
@@ -24,25 +21,22 @@
}
}
-.current-image-viewer {
- position: relative;
- width: 100%;
- height: 100%;
-}
-
.current-image-preview {
position: relative;
justify-content: center;
align-items: center;
display: flex;
width: 100%;
- // height: 100%;
- height: $app-text-to-image-height;
+ height: 100%;
img {
background-color: var(--img2img-img-bg-color);
border-radius: 0.5rem;
object-fit: contain;
+ max-width: 100%;
+ max-height: 100%;
+ height: auto;
+ position: absolute;
}
}
diff --git a/frontend/src/features/gallery/CurrentImageDisplay.tsx b/frontend/src/features/gallery/CurrentImageDisplay.tsx
index fb7b5c119f..d470f2eb71 100644
--- a/frontend/src/features/gallery/CurrentImageDisplay.tsx
+++ b/frontend/src/features/gallery/CurrentImageDisplay.tsx
@@ -2,7 +2,6 @@ import { RootState, useAppSelector } from '../../app/store';
import CurrentImageButtons from './CurrentImageButtons';
import { MdPhoto } from 'react-icons/md';
import CurrentImagePreview from './CurrentImagePreview';
-import ImageMetadataViewer from './ImageMetaDataViewer/ImageMetadataViewer';
import { tabMap } from '../tabs/InvokeTabs';
import { GalleryState } from './gallerySlice';
import { OptionsState } from '../options/optionsSlice';
@@ -37,7 +36,6 @@ const CurrentImageDisplay = () => {
currentImage,
intermediateImage,
activeTabName,
- shouldShowImageDetails,
} = useAppSelector(currentImageDisplaySelector);
const imageToDisplay = intermediateImage || currentImage;
@@ -47,15 +45,7 @@ const CurrentImageDisplay = () => {
{imageToDisplay ? (
<>