Skip to content

Commit b018362

Browse files
committed
Hide feature description on small screens; remove placeholder menu items and clarify saved-status comment
Make the "What it unlocks" column responsive by hiding it on small viewports (add hidden sm:table-cell to the header and description cells). Clean up Menubar by removing two disabled "Still in progress" MenuItems and update the comment to reflect the dynamic saved status display.
1 parent b13fa41 commit b018362

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/app/(home)/features/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ export default function FeaturesPage() {
8888
<thead className="bg-stone-200">
8989
<tr className="text-body uppercase tracking-wide">
9090
<th className="px-4 py-3 sm:px-6">Feature</th>
91-
<th className="px-4 py-3 sm:px-6">What it unlocks</th>
91+
<th className="hidden px-4 py-3 sm:table-cell sm:px-6">
92+
What it unlocks
93+
</th>
9294
<th className="px-4 py-3 sm:px-6">Free</th>
9395
<th className="px-4 py-3 sm:px-6">Pro</th>
9496
</tr>
@@ -99,7 +101,7 @@ export default function FeaturesPage() {
99101
<td className="px-4 py-4 font-semibold text-heading sm:px-6">
100102
{row.feature}
101103
</td>
102-
<td className="px-4 py-4 text-body opacity-90 sm:px-6">
104+
<td className="hidden px-4 py-4 text-body opacity-90 sm:table-cell sm:px-6">
103105
{row.description}
104106
</td>
105107
<td className="px-4 py-4 text-body opacity-90 sm:px-6">

src/components/editor/menubar.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -527,14 +527,8 @@ export const Menubar = ({
527527
<MenuItem onClick={onCopyJsonToClipboard}>
528528
Copy as JSON to clipboard
529529
</MenuItem>
530-
<MenuItem disabled onClick={handleMenuClose}>
531-
Still in progress
532-
</MenuItem>
533-
<MenuItem disabled onClick={handleMenuClose}>
534-
Still in progress
535-
</MenuItem>
536530
</Menu>
537-
{/* Modified: display dynamic saved status */}
531+
{/* Display dynamic saved status */}
538532
<Box className="hidden sm:flex items-center gap-3 border-1 rounded-md px-2 text-xs text-muted">
539533
{isSaved
540534
? `Saved at ${savedTimestamp?.toLocaleTimeString([], { hour: "numeric", minute: "2-digit" }) || "now"}`

0 commit comments

Comments
 (0)