[WEB-4552] fix: stickies layout + minified layout filter (#7466)

This commit is contained in:
Akshita Goyal
2025-07-24 14:06:46 +05:30
committed by GitHub
parent b7be45d08a
commit 3c6e2b4447
5 changed files with 22 additions and 6 deletions
@@ -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);