mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-22 03:04:35 +03:00
fix: render app bar without non-UI apps and properly when unpopulated
This commit is contained in:
parent
21337986ae
commit
4aae55d32a
@ -31,7 +31,7 @@ const AllApps: React.FC = () => {
|
||||
const o = [...orderedApps].sort((a, b) => {
|
||||
return a.order - b.order;
|
||||
});
|
||||
return o;
|
||||
return o.filter(app => app.path !== null);
|
||||
}, [orderedApps, apps]);
|
||||
|
||||
const displayedApps = expanded
|
||||
@ -92,6 +92,7 @@ const AllApps: React.FC = () => {
|
||||
<div
|
||||
className={`apps-grid ${expanded ? "expanded" : ""} ${isMobile ? "mobile" : ""
|
||||
}`}
|
||||
style={{ gridTemplateColumns: `repeat(${Math.min(displayedApps.length, 5)}, 1fr)` }}
|
||||
>
|
||||
{displayedApps.map((app, index) => (
|
||||
<div
|
||||
|
@ -159,7 +159,6 @@ footer {
|
||||
|
||||
.apps-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
width: 100%;
|
||||
color: var(--off-white);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user