Merge pull request #7380 from aignatov-bio/ai-sci-10524-fix-project-stretched-cards

Fix cards grid for big screens [SCI-10524]
This commit is contained in:
ajugo 2024-03-27 11:29:14 +01:00 committed by GitHub
commit 5fd195a855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -352,6 +352,8 @@ export default {
const gap = (maxGridCols - 1) * GLOBAL_CONSTANTS.TABLE_CARD_GAP;
maxGridCols = Math.floor((availableGridWidth - gap - padding) / GLOBAL_CONSTANTS.TABLE_CARD_MIN_WIDTH);
}
// grid-cols-2 grid-cols-3 grid-cols-4 grid-cols-5 grid-cols-6 grid-cols-7 grid-cols-8 grid-cols-9 grid-cols-10
if (maxGridCols > 10) maxGridCols = 10;
if (this.navigatorCollapsed) {
this.gridColsClass = 'grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4';