This commit is contained in:
BennyKok
2023-09-19 18:06:30 +08:00
parent 0a8250fe5c
commit ecf7c8c816
3 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -35,15 +35,14 @@ export function SideBar() {
const layers = Object.entries(imagePromptsMulti.val);
return ul(
{
class: "menu bg-base-200 w-56 rounded-box text-base-content",
class: "menu bg-base-200 w-56 rounded-box text-base-content ",
},
layers.length === 0 ? li(a("Empty layer")) : null,
...layers.map(([key, value]) => {
return li(
a(
{
class: () =>
`capitalize text-start items-start flex items-center justify-between ${
class: () => `normal-case text-start items-start flex items-center justify-between ${
selectedLayer.val === key ? "active" : ""
}`,
onclick: () => {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -11,9 +11,9 @@ class SAM_Predict:
"image": ("IMAGE",),
"embeddings": ("EMBEDDINGS",),
"predictor": ("SAMPREDICTOR",),
"prompt": ("SAM_PROMPT", )
},
"optional": {
"prompt": ("SAM_PROMPT", ),
"mask": ("IMAGE",),
}
}