mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-03-04 10:11:23 +01:00
tightened up center display
This commit is contained in:
parent
ff980591c3
commit
330f1577fd
@ -2,10 +2,8 @@ import { style, globalStyle } from "@vanilla-extract/css";
|
|||||||
|
|
||||||
import { vars } from "../../../../styles/theme/index.css";
|
import { vars } from "../../../../styles/theme/index.css";
|
||||||
|
|
||||||
// import { PanelBox } from "../../../../styles/shared.css.ts";
|
|
||||||
|
|
||||||
export const AdvancedSettingsList = style({
|
export const AdvancedSettingsList = style({
|
||||||
// marginBottom: vars.spacing.small,
|
|
||||||
paddingLeft: 0,
|
paddingLeft: 0,
|
||||||
listStyleType: "none",
|
listStyleType: "none",
|
||||||
});
|
});
|
||||||
@ -13,19 +11,3 @@ export const AdvancedSettingsList = style({
|
|||||||
export const AdvancedSettingGrouping = style({
|
export const AdvancedSettingGrouping = style({
|
||||||
marginTop: vars.spacing.medium,
|
marginTop: vars.spacing.medium,
|
||||||
});
|
});
|
||||||
|
|
||||||
// export const MenuButton = style({
|
|
||||||
// display: "block",
|
|
||||||
// width: "100%",
|
|
||||||
// textAlign: "left",
|
|
||||||
// backgroundColor: "transparent",
|
|
||||||
// color: vars.colors.text.normal,
|
|
||||||
// border: "0 none",
|
|
||||||
// cursor: "pointer",
|
|
||||||
// padding: "0",
|
|
||||||
// marginBottom: vars.spacing.medium,
|
|
||||||
// });
|
|
||||||
|
|
||||||
// globalStyle(`${MenuButton}> h4`, {
|
|
||||||
// color: "#e7ba71",
|
|
||||||
// });
|
|
||||||
|
@ -15,24 +15,8 @@ export const ImageModifierGrouping = style({
|
|||||||
marginTop: vars.spacing.medium,
|
marginTop: vars.spacing.medium,
|
||||||
});
|
});
|
||||||
|
|
||||||
// export const MenuButton = style({
|
|
||||||
// display: "block",
|
|
||||||
// width: "100%",
|
|
||||||
// textAlign: "left",
|
|
||||||
// backgroundColor: "transparent",
|
|
||||||
// color: vars.colors.text.normal,
|
|
||||||
// border: "0 none",
|
|
||||||
// cursor: "pointer",
|
|
||||||
// padding: "0",
|
|
||||||
// marginBottom: vars.spacing.medium,
|
|
||||||
// });
|
|
||||||
|
|
||||||
// globalStyle(`${MenuButton}> h4`, {
|
|
||||||
// color: "#e7ba71",
|
|
||||||
// });
|
|
||||||
|
|
||||||
export const ModifierListStyle = style({
|
export const ModifierListStyle = style({
|
||||||
// marginBottom: vars.spacing.small,
|
|
||||||
paddingLeft: 0,
|
paddingLeft: 0,
|
||||||
listStyleType: "none",
|
listStyleType: "none",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
@ -29,7 +29,7 @@ export const imageDisplayContent = style({
|
|||||||
});
|
});
|
||||||
|
|
||||||
globalStyle(`${imageDisplayContent} > div`, {
|
globalStyle(`${imageDisplayContent} > div`, {
|
||||||
marginBottom: vars.spacing.large,
|
marginBottom: vars.spacing.medium,
|
||||||
});
|
});
|
||||||
|
|
||||||
globalStyle(`${imageDisplayContent} p`, {
|
globalStyle(`${imageDisplayContent} p`, {
|
||||||
@ -38,4 +38,4 @@ globalStyle(`${imageDisplayContent} p`, {
|
|||||||
|
|
||||||
globalStyle(`${imageDisplayContent} button`, {
|
globalStyle(`${imageDisplayContent} button`, {
|
||||||
marginRight: vars.spacing.medium,
|
marginRight: vars.spacing.medium,
|
||||||
});
|
});
|
@ -79,7 +79,6 @@ export default function ImageDisplay({ info, data }: CompletedImagesType) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<GeneratedImage imageData={data} metadata={info}></GeneratedImage>
|
<GeneratedImage imageData={data} metadata={info}></GeneratedImage>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,6 @@ import {
|
|||||||
|
|
||||||
import ImageDisplay from "./imageDisplay";
|
import ImageDisplay from "./imageDisplay";
|
||||||
|
|
||||||
|
|
||||||
const IdleDisplay = () => {
|
const IdleDisplay = () => {
|
||||||
return (
|
return (
|
||||||
<h4 className="no-image">Try Making a new image!</h4>
|
<h4 className="no-image">Try Making a new image!</h4>
|
||||||
|
@ -16,8 +16,6 @@ interface ImageDisplayState {
|
|||||||
updateDisplay: (id: string, ImageData: string, imageOptions: any) => void;
|
updateDisplay: (id: string, ImageData: string, imageOptions: any) => void;
|
||||||
setCurrentImage: (image: CompletedImagesType) => void;
|
setCurrentImage: (image: CompletedImagesType) => void;
|
||||||
clearDisplay: () => void;
|
clearDisplay: () => void;
|
||||||
|
|
||||||
// getCurrentImage: () => {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useImageDisplay = create<ImageDisplayState>((set, get) => ({
|
export const useImageDisplay = create<ImageDisplayState>((set, get) => ({
|
||||||
@ -29,9 +27,7 @@ export const useImageDisplay = create<ImageDisplayState>((set, get) => ({
|
|||||||
updateDisplay: (id: string, ImageData: string, imageOptions) => {
|
updateDisplay: (id: string, ImageData: string, imageOptions) => {
|
||||||
set(
|
set(
|
||||||
produce((state) => {
|
produce((state) => {
|
||||||
// options: imageOptions
|
|
||||||
state.currentImage = { id, display: ImageData, info: imageOptions };
|
state.currentImage = { id, display: ImageData, info: imageOptions };
|
||||||
// // imageOptions
|
|
||||||
state.images.unshift({ id, data: ImageData, info: imageOptions });
|
state.images.unshift({ id, data: ImageData, info: imageOptions });
|
||||||
state.currentImage = state.images[0];
|
state.currentImage = state.images[0];
|
||||||
})
|
})
|
||||||
|
2
ui/frontend/dist/index.css
vendored
2
ui/frontend/dist/index.css
vendored
File diff suppressed because one or more lines are too long
44
ui/frontend/dist/index.js
vendored
44
ui/frontend/dist/index.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user