Skip to content

Commit a0912d5

Browse files
committed
Add some design for the save button.
1 parent 5d208d0 commit a0912d5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/components/PopupRoot.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,13 @@ export function PopupRoot({ drafts }: PopupRootProps) {
209209
</tr>
210210
</thead>
211211
<tbody className="divide-y divide-gray-200">
212-
213212
{filteredDrafts.length === 0 && (
214213
<tr>
215214
<td colSpan={2}>
216215
{drafts.length === 0 && <EmptyState />}
217-
{drafts.length > 0 && <NoMatchesState onClearFilters={clearFilters} />}
216+
{drafts.length > 0 && (
217+
<NoMatchesState onClearFilters={clearFilters} />
218+
)}
218219
</td>
219220
</tr>
220221
)}
@@ -233,7 +234,7 @@ export function PopupRoot({ drafts }: PopupRootProps) {
233234
</div>
234235

235236
{/* Footer shelf */}
236-
<div className="border-t border-gray-300 bg-gray-50 px-3 py-2 text-xs text-gray-600">
237+
<div className="border-gray-300 border-t bg-gray-50 px-3 py-2 text-gray-600 text-xs">
237238
<div className="flex items-center justify-between">
238239
<div>
239240
built with 🤖 by{" "}

src/components/design.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
MailCheck,
88
MessageSquareDashed,
99
Monitor,
10+
Save,
1011
Settings,
1112
TextSelect,
1213
Trash2,
@@ -21,6 +22,7 @@ export const typeIcons = {
2122
image: Image,
2223
link: Link,
2324
open: Monitor,
25+
save: Save,
2426
sent: MailCheck,
2527
settings: Settings,
2628
text: TextSelect,
@@ -37,6 +39,7 @@ export const typeColors = {
3739
image: "bg-purple-50 text-purple-700",
3840
link: "bg-blue-50 text-blue-700",
3941
open: "bg-cyan-50 text-cyan-700",
42+
save: "bg-indigo-50 text-indigo-700",
4043
sent: "bg-green-50 text-green-700",
4144
settings: "bg-gray-50 text-gray-700",
4245
text: "bg-gray-50 text-gray-700",

0 commit comments

Comments
 (0)