mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
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:
commit
5fd195a855
1 changed files with 2 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue