code format
This commit is contained in:
parent
76def20d86
commit
eaab405742
5 changed files with 31 additions and 20 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
from math import log
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,7 @@ const EditNodeModal = forwardRef(
|
||||||
</div>
|
</div>
|
||||||
) : myData.current.node?.template[templateParam]
|
) : myData.current.node?.template[templateParam]
|
||||||
.type === "dict" ? (
|
.type === "dict" ? (
|
||||||
<div className="mt-2 w-full max-h-48 overflow-auto custom-scroll">
|
<div className="mt-2 max-h-48 w-full overflow-auto custom-scroll">
|
||||||
<KeypairListComponent
|
<KeypairListComponent
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
editNode={true}
|
editNode={true}
|
||||||
|
|
|
||||||
|
|
@ -156,8 +156,20 @@ export default function NodeToolbarComponent({
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectItem value={getRandomKeyByssmm() + (nodeLength==0?"disabled":"advanced")}>
|
<SelectItem
|
||||||
<div className={"flex "+(nodeLength==0?"text-muted-foreground":"text-primary")}>
|
value={
|
||||||
|
getRandomKeyByssmm() +
|
||||||
|
(nodeLength == 0 ? "disabled" : "advanced")
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className={
|
||||||
|
"flex " +
|
||||||
|
(nodeLength == 0
|
||||||
|
? "text-muted-foreground"
|
||||||
|
: "text-primary")
|
||||||
|
}
|
||||||
|
>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Settings2"
|
name="Settings2"
|
||||||
className="relative top-0.5 mr-2 h-4 w-4"
|
className="relative top-0.5 mr-2 h-4 w-4"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue