UX: Add copy button to theme public key (#13690)
This commit is contained in:
parent
2f5e63fd7f
commit
729a9856f8
|
@ -78,7 +78,10 @@
|
|||
{{#if showPublicKey}}
|
||||
<div class="public-key">
|
||||
<div class="label">{{i18n "admin.customize.theme.public_key"}}</div>
|
||||
{{textarea readonly=true value=publicKey}}
|
||||
<div class="public-key-text-wrapper">
|
||||
{{textarea class="public-key-value" readonly=true value=publicKey}}
|
||||
{{copy-button selector="textarea.public-key-value"}}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
{{#if privateChecked}}
|
||||
|
|
|
@ -596,7 +596,6 @@
|
|||
}
|
||||
label input {
|
||||
width: auto;
|
||||
margin: 3px 0;
|
||||
}
|
||||
}
|
||||
.public-key {
|
||||
|
@ -604,7 +603,17 @@
|
|||
textarea {
|
||||
cursor: auto;
|
||||
min-height: 220px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
button {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.public-key-text-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.public-key-note {
|
||||
|
|
Loading…
Reference in New Issue