+
+
(
+ setIsOpen(val)}
+ className="flex items-center justify-center"
+ buttonClassName="flex h-[52px] w-[52px] flex-shrink-0 items-center justify-center rounded-lg bg-white/[0.06]"
+ label={}
+ // TODO: fix types
+ onChange={(val: any) => {
+ let logoValue = {};
- if (val?.type === "emoji")
- logoValue = {
- value: val.value,
- };
- else if (val?.type === "icon") logoValue = val.value;
+ if (val?.type === "emoji")
+ logoValue = {
+ value: val.value,
+ };
+ else if (val?.type === "icon") logoValue = val.value;
- onChange({
- in_use: val?.type,
- [val?.type]: logoValue,
- });
- setIsOpen(false);
- }}
- defaultIconColor={value?.in_use && value.in_use === "icon" ? value?.icon?.color : undefined}
- defaultOpen={
- value.in_use && value.in_use === "emoji" ? EmojiIconPickerTypes.EMOJI : EmojiIconPickerTypes.ICON
- }
- disabled={!isAdmin}
- />
- )}
- />
-
-
{watch("name")}
-
- {watch("identifier")} .
-
- {project.network === 0 && }
- {currentNetwork && t(currentNetwork?.i18n_label)}
+ onChange({
+ in_use: val?.type,
+ [val?.type]: logoValue,
+ });
+ setIsOpen(false);
+ }}
+ defaultIconColor={value?.in_use && value.in_use === "icon" ? value?.icon?.color : undefined}
+ defaultOpen={
+ value.in_use && value.in_use === "emoji" ? EmojiIconPickerTypes.EMOJI : EmojiIconPickerTypes.ICON
+ }
+ disabled={!isAdmin}
+ />
+ )}
+ />
+
+ {watch("name")}
+
+ {watch("identifier")} .
+
+ {project.network === 0 && }
+ {currentNetwork && t(currentNetwork?.i18n_label)}
+
-
+
@@ -397,7 +399,7 @@ export function ProjectDetailsForm(props: IProjectDetailsForm) {
)}
}
- menuButtonWrapperClassName="nodedc-settings-select !h-12 font-medium"
+ menuButtonWrapperClassName="nodedc-settings-select !h-12 min-w-[12.75rem] px-4 font-medium"
disabled={!isAdmin}
/>
);
diff --git a/plane-src/apps/web/core/components/workspace/sidebar/projects-list-item.tsx b/plane-src/apps/web/core/components/workspace/sidebar/projects-list-item.tsx
index 5f71d6a..c295ec9 100644
--- a/plane-src/apps/web/core/components/workspace/sidebar/projects-list-item.tsx
+++ b/plane-src/apps/web/core/components/workspace/sidebar/projects-list-item.tsx
@@ -392,35 +392,66 @@ export const SidebarProjectsListItem = observer(function SidebarProjectsListItem
)}
- <>
-
- {isAccordionMode ? (
-
+
+ {!renderInToolbarMenu && (
+
+
+
}
- >
-
-
-
- {project.name}
-
- ) : (
+ className={cn(
+ "pointer-events-none flex-shrink-0 opacity-0 group-hover/project-item:pointer-events-auto group-hover/project-item:opacity-100",
+ {
+ "pointer-events-auto opacity-100": isMenuActive,
+ }
+ )}
+ buttonClassName={cn(
+ "grid size-7 place-items-center rounded-full text-placeholder transition-colors hover:bg-layer-transparent-hover",
+ {
+ "bg-layer-transparent-hover": isMenuActive,
+ }
+ )}
+ placement="bottom-start"
+ onOpenChange={setIsMenuActive}
+ items={projectActionMenuItems}
+ />
+ )}
+
+ ) : (
+ <>
+