From 2bc679ea973e23b610a28a8d78ba139d6170e554 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Tue, 24 Jan 2023 22:19:08 -0600 Subject: [PATCH] fix(gui): move image card labels to tooltip --- gui/src/components/ImageCard.tsx | 46 ++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/gui/src/components/ImageCard.tsx b/gui/src/components/ImageCard.tsx index 1c582138..4eb82001 100644 --- a/gui/src/components/ImageCard.tsx +++ b/gui/src/components/ImageCard.tsx @@ -1,6 +1,6 @@ import { doesExist, mustExist } from '@apextoaster/js-utils'; import { Brush, ContentCopy, ContentCopyTwoTone, Delete, Download } from '@mui/icons-material'; -import { Box, Button, Card, CardContent, CardMedia, Grid, Paper } from '@mui/material'; +import { Box, Button, Card, CardContent, CardMedia, Grid, IconButton, Paper, Tooltip } from '@mui/material'; import * as React from 'react'; import { useContext } from 'react'; import { useStore } from 'zustand'; @@ -67,37 +67,43 @@ export function ImageCard(props: ImageCardProps) { title={params.prompt} /> - + CFG: {params.cfg} Steps: {params.steps} Size: {size.width}x{size.height} Seed: {params.seed} Scheduler: {params.scheduler} - {params.prompt} - - + + {params.prompt} - + + + + + - + + + + + - + + + + + + + + + + + +