π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB-5662][WEB-5770] fix: alignment of cycles in sidebar and layout selection dropdown button (#8414)
Jayash Tripathy5a2e2e7e1111
diff --git a/apps/space/core/components/issues/issue-layouts/properties/cycle.tsx b/apps/space/core/components/issues/issue-layouts/properties/cycle.tsxindex 5fc975b36f..a3dac69440 100644--- a/apps/space/core/components/issues/issue-layouts/properties/cycle.tsx+++ b/apps/space/core/components/issues/issue-layouts/properties/cycle.tsx@@ -27,7 +27,7 @@ export const IssueBlockCycle = observer(function IssueBlockCycle({ cycleId, shou><div className="flex w-full items-center text-11 gap-1.5"><CycleIcon className="h-3 w-3 flex-shrink-0" />- <div className="max-w-40 flex-grow truncate ">{cycle?.name ?? "No Cycle"}</div>+ <div className="max-w-40 truncate ">{cycle?.name ?? "No Cycle"}</div></div></div></Tooltip>diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/star-us-link.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/star-us-link.tsxindex 86ab8af066..7501a2e1e8 100644--- a/apps/web/app/(all)/[workspaceSlug]/(projects)/star-us-link.tsx+++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/star-us-link.tsx@@ -29,7 +29,7 @@ export function StarUsOnGitHubLink() {},})}- className="flex flex-shrink-0 items-center gap-1.5 rounded-sm bg-layer-1 px-3 py-1.5"+ className="flex flex-shrink-0 items-center gap-1.5 rounded-sm bg-layer-2 px-3 py-1.5"href="https://github.com/makeplane/plane"target="_blank"rel="noopener noreferrer"diff --git a/apps/web/core/components/dropdowns/buttons.tsx b/apps/web/core/components/dropdowns/buttons.tsxindex 217ea52458..b7e04a3673 100644--- a/apps/web/core/components/dropdowns/buttons.tsx+++ b/apps/web/core/components/dropdowns/buttons.tsx@@ -104,7 +104,7 @@ function BackgroundButton(props: ButtonProps) {variant="ghost"size="sm"className={cn(- "h-full w-full flex items-center justify-start gap-1.5 bg-layer-3 hover:bg-layer-1-hover",+ "h-full w-full flex items-center justify-between gap-1.5 bg-layer-3 hover:bg-layer-1-hover",className)}>@@ -129,7 +129,7 @@ function TransparentButton(props: ButtonProps) {variant="ghost"size="sm"className={cn(- "h-full w-full flex items-center justify-start gap-1.5",+ "h-full w-full flex items-center justify-between gap-1.5",{"bg-layer-transparent-active": isActive,},diff --git a/apps/web/core/components/dropdowns/cycle/index.tsx b/apps/web/core/components/dropdowns/cycle/index.tsxindex 1e00a3dab3..f5d8d7adb1 100644--- a/apps/web/core/components/dropdowns/cycle/index.tsx+++ b/apps/web/core/components/dropdowns/cycle/index.tsx@@ -117,7 +117,7 @@ export const CycleDropdown = observer(function CycleDropdown(props: Props) {>{!hideIcon && <CycleIcon className="h-3 w-3 flex-shrink-0" />}{BUTTON_VARIANTS_WITH_TEXT.includes(buttonVariant) && (!!selectedName || !!placeholder) && (- <span className="max-w-40 flex-grow truncate">{selectedName ?? placeholder}</span>+ <span className="max-w-40 truncate">{selectedName ?? placeholder}</span>)}{dropdownArrow && (<ChevronDownIcon className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />diff --git a/apps/web/core/components/dropdowns/estimate.tsx b/apps/web/core/components/dropdowns/estimate.tsxindex 4e1b0f3135..0f765b2430 100644--- a/apps/web/core/components/dropdowns/estimate.tsx+++ b/apps/web/core/components/dropdowns/estimate.tsx@@ -192,12 +192,16 @@ export const EstimateDropdown = observer(function EstimateDropdown(props: Props)>{!hideIcon && <EstimatePropertyIcon className="h-3 w-3 flex-shrink-0" />}{(selectedEstimate || placeholder) && BUTTON_VARIANTS_WITH_TEXT.includes(buttonVariant) && (- <span className="flex-grow truncate">- {selectedEstimate- ? currentActiveEstimate?.type === EEstimateSystem.TIME- ? convertMinutesToHoursMinutesString(Number(selectedEstimate.value))- : selectedEstimate.value- : placeholder}+ <span className="truncate">+ {selectedEstimate ? (+ currentActiveEstimate?.type === EEstimateSystem.TIME ? (+ convertMinutesToHoursMinutesString(Number(selectedEstimate.value))+ ) : (+ selectedEstimate.value+ )+ ) : (+ <span className="text-placeholder">{placeholder}</span>+ )}</span>)}{dropdownArrow && (diff --git a/apps/web/core/components/dropdowns/layout.tsx b/apps/web/core/components/dropdowns/layout.tsxindex 37f946b1a4..6d246b39fd 100644--- a/apps/web/core/components/dropdowns/layout.tsx+++ b/apps/web/core/components/dropdowns/layout.tsx@@ -9,6 +9,7 @@ import { Dropdown } from "@plane/ui";import { cn } from "@plane/utils";// componentsimport { IssueLayoutIcon } from "@/components/issues/issue-layouts/layout-icon";+import { getIconButtonStyling } from "@plane/propel/icon-button";type TLayoutDropDown = {onChange: (value: EIssueLayoutTypes) => void;@@ -67,7 +68,7 @@ export const LayoutDropDown = observer(function LayoutDropDown(props: TLayoutDrovalue={value?.toString()}keyExtractor={keyExtractor}options={options}- buttonContainerClassName="bg-surface-1 border border-subtle hover:bg-surface-2 focus:text-tertiary focus:bg-surface-2 px-2 py-1.5 rounded-sm flex items-center gap-1.5 whitespace-nowrap transition-all justify-center relative"+ buttonContainerClassName={cn(getIconButtonStyling("secondary", "lg"), "w-auto px-2")}buttonContent={buttonContent}renderItem={itemContent}disableSearchdiff --git a/apps/web/core/components/dropdowns/module/button-content.tsx b/apps/web/core/components/dropdowns/module/button-content.tsxindex 55be6a135d..a2ea4561d7 100644--- a/apps/web/core/components/dropdowns/module/button-content.tsx+++ b/apps/web/core/components/dropdowns/module/button-content.tsx@@ -45,7 +45,7 @@ export function ModuleButtonContent(props: ModuleButtonContentProps) {<div className="relative flex items-center max-w-full gap-1">{!hideIcon && <ModuleIcon className="h-3 w-3 flex-shrink-0" />}{(value.length > 0 || !!placeholder) && (- <div className="max-w-40 flex-grow truncate">+ <div className="max-w-40 truncate">{value.length > 0? value.length === 1? `${getModuleById(value[0])?.name || "module"}`@@ -75,7 +75,7 @@ export function ModuleButtonContent(props: ModuleButtonContentProps) {isMobile={isMobile}renderByDefault={false}>- <span className="max-w-40 flex-grow truncate text-11 font-medium">{moduleDetails?.name}</span>+ <span className="max-w-40 truncate text-11 font-medium">{moduleDetails?.name}</span></Tooltip>)}{!disabled && (diff --git a/apps/web/core/components/issues/issue-detail/module-select.tsx b/apps/web/core/components/issues/issue-detail/module-select.tsxindex 4d601b2e29..42e0fe1ec2 100644--- a/apps/web/core/components/issues/issue-detail/module-select.tsx+++ b/apps/web/core/components/issues/issue-detail/module-select.tsx@@ -64,7 +64,7 @@ export const IssueModuleSelect = observer(function IssueModuleSelect(props: TIssplaceholder={t("module.no_module")}disabled={disableSelect}className="group h-full w-full"- buttonContainerClassName="w-full text-left h-7.5 rounded-sm"+ buttonContainerClassName="w-full text-left rounded-sm"buttonClassName={`text-body-xs-medium justify-between ${issue?.module_ids?.length ? "" : "text-placeholder"}`}buttonVariant="transparent-with-text"hideIcondiff --git a/packages/ui/src/breadcrumbs/navigation-dropdown.tsx b/packages/ui/src/breadcrumbs/navigation-dropdown.tsxindex 623fe19913..9010602c5a 100644--- a/packages/ui/src/breadcrumbs/navigation-dropdown.tsx+++ b/packages/ui/src/breadcrumbs/navigation-dropdown.tsx@@ -46,7 +46,7 @@ export function BreadcrumbNavigationDropdown(props: TBreadcrumbNavigationDropdow)}><div className="flex @4xl:hidden text-tertiary">...</div>- <div className="hidden @4xl:flex gap-2">+ <div className="hidden @4xl:flex gap-2 items-center">{selectedItemIcon && <Breadcrumbs.Icon>{selectedItemIcon}</Breadcrumbs.Icon>}<Breadcrumbs.Label>{selectedItem?.title}</Breadcrumbs.Label></div>diff --git a/packages/ui/src/breadcrumbs/navigation-search-dropdown.tsx b/packages/ui/src/breadcrumbs/navigation-search-dropdown.tsxindex 23305ad713..0ccc2e5090 100644--- a/packages/ui/src/breadcrumbs/navigation-search-dropdown.tsx+++ b/packages/ui/src/breadcrumbs/navigation-search-dropdown.tsx@@ -70,7 +70,7 @@ export function BreadcrumbNavigationSearchDropdown(props: TBreadcrumbNavigationS{shouldTruncate && <div className="flex @4xl:hidden text-tertiary">...</div>}<divclassName={cn("flex gap-2", {- "hidden @4xl:flex gap-2": shouldTruncate,+ "hidden @4xl:flex gap-2 items-center": shouldTruncate,})}>{icon && <Breadcrumbs.Icon>{icon}</Breadcrumbs.Icon>}