mirror of
https://github.com/makeplane/plane.git
synced 2026-05-08 00:49:36 -05:00
[WEB-4552] fix: stickies layout + minified layout filter (#7466)
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ export const MobileLayoutSelection = ({
|
||||
className="flex items-center gap-2"
|
||||
>
|
||||
<IssueLayoutIcon layout={layout.key} className="h-3 w-3" />
|
||||
<div className="text-custom-text-300">{t(layout.i18n_title)}</div>
|
||||
<div className="text-custom-text-300">{t(layout.i18n_label)}</div>
|
||||
</CustomMenu.MenuItem>
|
||||
))}
|
||||
</CustomMenu>
|
||||
|
||||
@@ -182,10 +182,13 @@ export const StickiesLayout = (props: TStickiesLayout) => {
|
||||
}, []);
|
||||
|
||||
const getColumnCount = (width: number | null): number => {
|
||||
if (width === null) return 3;
|
||||
if (width === null) return 4;
|
||||
|
||||
if (width < 640) return 2;
|
||||
return 3;
|
||||
if (width < 640) return 2; // sm
|
||||
if (width < 850) return 3; // md
|
||||
if (width < 1024) return 4; // lg
|
||||
if (width < 1280) return 5; // xl
|
||||
return 6; // 2xl and above
|
||||
};
|
||||
const columnCount = getColumnCount(containerWidth);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user