mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-20 00:35:23 +00:00
Top langs card: Increase maximum languages count to 20 (#2832)
This commit is contained in:
parent
99aca1b6d5
commit
1997328951
1 changed files with 2 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ const MIN_CARD_WIDTH = 280;
|
|||
const DEFAULT_LANG_COLOR = "#858585";
|
||||
const CARD_PADDING = 25;
|
||||
const COMPACT_LAYOUT_BASE_HEIGHT = 90;
|
||||
const MAXIMUM_LANGS_COUNT = 20;
|
||||
|
||||
const NORMAL_LAYOUT_DEFAULT_LANGS_COUNT = 5;
|
||||
const COMPACT_LAYOUT_DEFAULT_LANGS_COUNT = 6;
|
||||
|
|
@ -170,7 +171,7 @@ const donutCenterTranslation = (totalLangs) => {
|
|||
const trimTopLanguages = (topLangs, langs_count, hide) => {
|
||||
let langs = Object.values(topLangs);
|
||||
let langsToHide = {};
|
||||
let langsCount = clampValue(parseInt(langs_count), 1, 10);
|
||||
let langsCount = clampValue(parseInt(langs_count), 1, MAXIMUM_LANGS_COUNT);
|
||||
|
||||
// populate langsToHide map for quick lookup
|
||||
// while filtering out
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue