mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 19:55:16 +00:00
Refactor: Fixed vscode type error in renderTopLanguages function (#2964)
This commit is contained in:
parent
65ad198d62
commit
82917825f9
1 changed files with 7 additions and 5 deletions
|
|
@ -738,11 +738,13 @@ const renderTopLanguages = (topLangs, options = {}) => {
|
|||
hide,
|
||||
);
|
||||
|
||||
let width = isNaN(card_width)
|
||||
? DEFAULT_CARD_WIDTH
|
||||
: card_width < MIN_CARD_WIDTH
|
||||
? MIN_CARD_WIDTH
|
||||
: card_width;
|
||||
let width = card_width
|
||||
? isNaN(card_width)
|
||||
? DEFAULT_CARD_WIDTH
|
||||
: card_width < MIN_CARD_WIDTH
|
||||
? MIN_CARD_WIDTH
|
||||
: card_width
|
||||
: DEFAULT_CARD_WIDTH;
|
||||
let height = calculateNormalLayoutHeight(langs.length);
|
||||
|
||||
// returns theme based colors with proper overrides and defaults
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue