Skip to content

Commit bd12ce6

Browse files
committed
change buttons to icons
1 parent 406049f commit bd12ce6

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

frontend/app/components/MessageCard.vue

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import IconArchive from "~icons/mdi/archive";
1111
import IconClock from "~icons/mdi/clock";
1212
import IconChevronDown from "~icons/mdi/chevron-down";
1313
import IconChevronUp from "~icons/mdi/chevron-up";
14+
import IconContentCopy from "~icons/mdi/content-copy";
15+
import IconSwapHorizontal from "~icons/mdi/swap-horizontal";
16+
import IconDelete from "~icons/mdi/delete";
1417
1518
interface Props {
1619
message: FeedMessage;
@@ -343,21 +346,30 @@ const handleDelete = async () => {
343346
<div
344347
class="mt-4 pt-4 border-t border-base-300 flex gap-2 justify-end flex-wrap"
345348
>
346-
<button class="btn btn-sm btn-ghost" @click="copyId">
347-
Copy ID
349+
<button
350+
class="btn btn-sm btn-ghost btn-circle"
351+
aria-label="Copy ID"
352+
@click="copyId"
353+
>
354+
<IconContentCopy class="h-5 w-5" />
348355
</button>
349356
<button
350357
v-if="message.state === 'new'"
351-
class="btn btn-sm btn-ghost"
358+
class="btn btn-sm btn-ghost btn-circle"
359+
aria-label="Mark as Read"
352360
@click="markAsRead"
353361
>
354-
Mark as Read
362+
<IconEyeCheck class="h-5 w-5" />
355363
</button>
356364

357365
<!-- State change dropdown -->
358366
<div class="dropdown dropdown-end">
359-
<button tabindex="0" class="btn btn-sm btn-primary">
360-
Change State
367+
<button
368+
tabindex="0"
369+
class="btn btn-sm btn-primary btn-circle"
370+
aria-label="Change State"
371+
>
372+
<IconSwapHorizontal class="h-5 w-5" />
361373
</button>
362374
<ul
363375
tabindex="0"
@@ -407,10 +419,11 @@ const handleDelete = async () => {
407419
</div>
408420

409421
<button
410-
class="btn btn-sm btn-error btn-outline"
422+
class="btn btn-sm btn-error btn-circle"
423+
aria-label="Delete"
411424
@click="handleDelete"
412425
>
413-
Delete
426+
<IconDelete class="h-5 w-5" />
414427
</button>
415428
</div>
416429
</div>

0 commit comments

Comments
 (0)