File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
resources/js/pages/servers/components Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import {
28
28
} from '@/components/ui/dialog' ;
29
29
import ServerTemplates from './templates' ;
30
30
import { ServerTemplate , Service } from '@/types/server-template' ;
31
+ import { Textarea } from '@/components/ui/textarea' ;
31
32
32
33
type CreateServerForm = {
33
34
provider : string ;
@@ -440,18 +441,17 @@ export default function CreateServer({
440
441
</ AlertDescription >
441
442
</ Alert >
442
443
< FormField >
443
- < Label htmlFor = "public_key" > Public Key command</ Label >
444
- < Button
444
+ < Label htmlFor = "public_key" className = "flex items-center gap-2" >
445
+ Public Key command
446
+ { copySuccess ? < ClipboardCheckIcon className = "text-success! size-3" /> : < ClipboardIcon className = "size-3 cursor-pointer" /> }
447
+ </ Label >
448
+ < Textarea
445
449
onClick = { copyToClipboard }
446
- variant = "outline"
447
450
id = "public_key"
448
- type = "button"
449
451
value = { page . props . public_key_text }
450
- className = "justify-between truncate font-normal"
451
- >
452
- < span className = "w-full max-w-2/3 overflow-x-hidden overflow-ellipsis" > { page . props . public_key_text } </ span >
453
- { copySuccess ? < ClipboardCheckIcon size = { 5 } className = "text-success!" /> : < ClipboardIcon size = { 5 } /> }
454
- </ Button >
452
+ className = "justify-between overflow-auto font-normal"
453
+ spellCheck = { false }
454
+ > </ Textarea >
455
455
</ FormField >
456
456
</ >
457
457
) }
You can’t perform that action at this time.
0 commit comments