Skip to content

Commit 07fe2a6

Browse files
feat(admin): add icon + min height (#1046)
**Min height**: ![](https://github.com/user-attachments/assets/0c523283-0069-4d31-9ddf-f3d1558ce966) **Adding icon**: <img width="1233" alt="Capture d’écran 2025-04-17 à 22 00 51" src="https://github.com/user-attachments/assets/ed279cf3-d7f1-46c5-966a-2a002c2a5935" /> <img width="1233" alt="Capture d’écran 2025-04-17 à 22 01 00" src="https://github.com/user-attachments/assets/e817d996-342a-44d1-970c-389050d28bb5" />
1 parent 4d0fe9d commit 07fe2a6

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

frontend/islands/TicketMessageInput.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
22
import { useState } from "preact/hooks";
3+
import { TbCheck, TbClock } from "tb-icons";
34
import {
45
AdminUpdateTicketRequest,
56
FullUser,
@@ -35,7 +36,7 @@ export function TicketMessageInput(
3536
}}
3637
>
3738
<textarea
38-
class="w-full block px-2 py-1.5 input-container input"
39+
class="w-full block px-2 py-1.5 input-container input min-h-20"
3940
value={message}
4041
rows={3}
4142
placeholder="Type your message here..."
@@ -65,7 +66,17 @@ export function TicketMessageInput(
6566
});
6667
}}
6768
>
68-
{ticket.closed ? "Re-open" : "Close"} ticket
69+
{ticket.closed
70+
? (
71+
<>
72+
<TbClock class="text-white" /> Re-open
73+
</>
74+
)
75+
: (
76+
<>
77+
<TbCheck class="text-white" /> Close
78+
</>
79+
)} ticket
6980
</button>
7081
)}
7182
</div>

0 commit comments

Comments
 (0)