Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-5352] fix: layout selection icon #8070

Aaryan Khandelwal4927ef8c7178
diff --git a/apps/web/core/components/issues/issue-layouts/filters/header/mobile-layout-selection.tsx b/apps/web/core/components/issues/issue-layouts/filters/header/mobile-layout-selection.tsx
index e0000f03fe..5af61ca294 100644
--- a/apps/web/core/components/issues/issue-layouts/filters/header/mobile-layout-selection.tsx
+++ b/apps/web/core/components/issues/issue-layouts/filters/header/mobile-layout-selection.tsx
@@ -23,17 +23,12 @@ export const MobileLayoutSelection = ({
className="flex flex-grow justify-center text-sm text-custom-text-200"
placement="bottom-start"
customButton={
- activeLayout ? (
- <Button variant="neutral-primary" size="sm" className="relative px-2">
+ <Button variant="neutral-primary" size="sm" className="relative px-2">
+ {activeLayout && (
<IssueLayoutIcon layout={activeLayout} size={14} strokeWidth={2} className={`h-3.5 w-3.5`} />
- <ChevronDownIcon className="size-3 text-custom-text-200 my-auto" strokeWidth={2} />
- </Button>
- ) : (
- <div className="flex flex-start text-sm text-custom-text-200">
- {t("common.layout")}
- <ChevronDownIcon className="ml-2 h-4 w-4 text-custom-text-200 my-auto" strokeWidth={2} />
- </div>
- )
+ )}
+ <ChevronDownIcon className="size-3 text-custom-text-200 my-auto" strokeWidth={2} />
+ </Button>
}
customButtonClassName="flex flex-grow justify-center text-custom-text-200 text-sm"
closeOnSelect