Commit 11448be
fix(menu): filter out menu items with missing title or href (#543)
* fix(menu): filter out menu items with missing title or href
Add defensive rendering to prevent blank menu items from appearing.
Filter out any menu items that don't have both a title and href before
rendering them in both navigation and dropdown menu components.
This prevents runtime issues where menu items might be undefined or
have missing properties, which would cause blank cards to appear in
the menu grid layout.
Co-Authored-By: duyetbot <[email protected]>
* fix(menu): reduce menu item padding for better layout
Reduce padding to improve menu layout and prevent overflow issues:
- Grid container: p-4 → p-2 (16px → 8px)
- Menu item cards: p-3 → p-2 (12px → 8px)
This provides a more compact layout that better fits the menu content
and reduces the likelihood of layout issues causing blank items.
Co-Authored-By: duyetbot <[email protected]>
---------
Co-authored-by: duyetbot <[email protected]>1 parent b4b75f8 commit 11448be
File tree
2 files changed
+4
-4
lines changed2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments