mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-29 19:53:40 +01:00
Move similar image info buttons into a single row, using the new array API
This commit is contained in:
parent
841811e3bc
commit
b7a7a7d31f
@ -155,11 +155,11 @@ code {
|
||||
.imgContainer:hover > .img_bottom_label {
|
||||
opacity: 60%;
|
||||
}
|
||||
.imgItemInfo * {
|
||||
.imgItemInfo > * {
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
.imgItemInfo .tasksBtns {
|
||||
margin-left: 1em;
|
||||
margin-left: 5pt;
|
||||
}
|
||||
.imgItem .image_clear_btn {
|
||||
transform: translate(40%, -50%);
|
||||
|
@ -342,13 +342,17 @@ function showImages(reqBody, res, outputContainer, livePreview) {
|
||||
|
||||
let buttons = [
|
||||
{ text: 'Use as Input', on_click: onUseAsInputClick },
|
||||
{ text: 'Download', on_click: onDownloadImageClick, class: "download-img" },
|
||||
{ text: 'Download JSON', on_click: onDownloadJSONClick, class: "download-json" },
|
||||
[
|
||||
{ html: '<i class="fa-solid fa-download"></i> Download Image', on_click: onDownloadImageClick, class: "download-img" },
|
||||
{ html: '<i class="fa-solid fa-download"></i> JSON', on_click: onDownloadJSONClick, class: "download-json" }
|
||||
],
|
||||
{ text: 'Make Similar Images', on_click: onMakeSimilarClick },
|
||||
{ text: 'Draw another 25 steps', on_click: onContinueDrawingClick },
|
||||
[
|
||||
{ text: 'Upscale', on_click: onUpscaleClick, filter: (req, img) => !req.use_upscale },
|
||||
{ text: 'Fix Faces', on_click: onFixFacesClick, filter: (req, img) => !req.use_face_correction }
|
||||
]
|
||||
]
|
||||
|
||||
// include the plugins
|
||||
buttons = buttons.concat(PLUGINS['IMAGE_INFO_BUTTONS'])
|
||||
|
Loading…
Reference in New Issue
Block a user