fix(plugins/languages): display when all details enabled (#791) [skip ci]

This commit is contained in:
Simon Lecoq
2022-01-19 14:24:18 +01:00
committed by GitHub
parent 490cbeefbd
commit a7079285f3
3 changed files with 7 additions and 2 deletions

View File

@@ -36,7 +36,7 @@
<rect mask="url(#languages-bar)" x="<%= x*width %>" y="0" width="<%= value*width %>" height="8" fill="<%= color ?? "#959DA5" %>"/>
<% } %>
</svg>
<% if (plugins.languages.details?.length) { const rows = large ? [0, 1, 2, 3] : [0, 1] %>
<% if (plugins.languages.details.length) { const rows = large ? [0, 1, 2, 3] : (plugins.languages.details.length > 2) ? [0] : [0, 1] %>
<div class="row fill-width">
<% for (const row of rows) { %>
<section>