diff options
Diffstat (limited to 'includes/components/pane.inc')
-rw-r--r-- | includes/components/pane.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/components/pane.inc b/includes/components/pane.inc index 28ccd71..8a18407 100644 --- a/includes/components/pane.inc +++ b/includes/components/pane.inc @@ -41,8 +41,8 @@ foreach ($list as $color) { <span style="vertical-align: middle;"><?= $item["name"] ?></span> </div> - <?php foreach ($item["items"] as $category): if (!($category["minimal"] && $isLowerLoggedIn)): ?> - <div class="pane-group-category <?= $category["minimal"] ? "pane-group-category-minimal" : "" ?>" <?= $category["minimal"] ? 'style="display: grid; grid-template-columns: repeat(' . count($category["items"]) . ', 1fr); grid-gap: 10px;"' : "" ?>> + <?php foreach ($item["items"] as $category): ?> + <div class="pane-group-category <?= $category["minimal"] ? "pane-group-category-minimal" : "" ?>" <?= $category["minimal"] ? 'style="display: grid; grid-template-columns: repeat(' . ($isLowerLoggedIn ? 2 : 3) . ', 1fr); grid-gap: 10px;"' : "" ?>> <?php if (isset($category["name"])): ?> <div class="pane-group-category-title"><?= $category["name"] ?></div> <?php endif; ?> @@ -53,7 +53,7 @@ foreach ($list as $color) { </a> <?php endif; endif; endforeach; ?> </div> - <?php endif; endforeach; ?> + <?php endforeach; ?> </div> <?php endif; endforeach; ?> |