Media: Add button in media upload page for copying the media url.

Adds a button to the media upload page to make copying the url possible on the same page when a media item upload is successful.

Props anotia, ryokuhi, Mista-Flo, lukecarbis, antpb, claytoncollie, shaunandrews, joedolson.
Fixes #51754.



git-svn-id: https://develop.svn.wordpress.org/trunk@51023 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Anthony Burchell
2021-05-26 01:39:47 +00:00
parent 7ec2c1dec8
commit ba7684417a
4 changed files with 102 additions and 16 deletions

View File

@@ -51,6 +51,14 @@
max-width: 128px;
}
.media-list-subtitle {
display: block;
}
.media-list-title {
display: block;
}
#wpbody-content #async-upload-wrap a {
display: none;
}
@@ -96,7 +104,6 @@
padding: 0 0 0 5px;
}
.media-item .edit-attachment,
.describe-toggle-on,
.describe-toggle-off {
display: block;
@@ -105,6 +112,39 @@
margin-right: 10px;
}
.media-item {
display: grid;
grid-template-columns: repeat( 2, 1fr );
}
.media-item .attachment-tools {
display: flex;
justify-content: flex-end;
align-items: center;
}
.media-item .edit-attachment {
padding: 14px 0;
display: block;
margin-right: 10px;
}
.media-item .edit-attachment.copy-to-clipboard-container {
margin-top: 0;
}
.media-item-copy-container .success {
line-height: 0;
}
.media-item button .copy-attachment-url {
margin-top:14px;
}
.media-item .copy-to-clipboard-container {
margin-top:7px;
}
.media-item .describe-toggle-off,
.media-item.open .describe-toggle-on {
display: none;
@@ -115,7 +155,7 @@
}
.media-upload-form .media-item {
min-height: 36px;
min-height: 70px;
margin-bottom: 1px;
position: relative;
width: 100%;
@@ -132,16 +172,16 @@
}
.media-item .filename {
line-height: 2.76923076;
padding: 14px 0;
overflow: hidden;
margin-left: 6px;
}
.media-item .pinkynail {
float: left;
margin: 2px 10px 0 3px;
max-width: 40px;
max-height: 32px;
margin: 0 10px 0 0;
max-height: 70px;
max-width: 70px;
}
.media-item .startopen,