code format

This commit is contained in:
anovazzi1 2023-09-27 10:20:34 -03:00
commit eaab405742
5 changed files with 31 additions and 20 deletions

View file

@ -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

View file

@ -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}

View file

@ -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"