Update styles for copy to clipboard

Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
pull/10616/head
Iris Scholten 2018-06-05 15:16:31 -07:00
parent 36581a765e
commit 1a3fb65858
2 changed files with 11 additions and 3 deletions

View File

@ -52,9 +52,11 @@ class DatabaseListItem extends PureComponent<Props, State> {
return (
<div className={this.className} onClick={this.handleClick}>
<div className="flux-schema-item">
<div className="flux-schema-item-toggle" />
{db}
<span className="flux-schema-type">Bucket</span>
<div className="flex-schema-item-group">
<div className="flux-schema-item-toggle" />
{db}
<span className="flux-schema-type">Bucket</span>
</div>
<CopyToClipboard text={db} onCopy={this.handleCopy}>
<div className="flux-schema-copy" onClick={this.handleCopyClick}>
<span className="icon duplicate" title="copy to clipboard" />

View File

@ -120,6 +120,12 @@ $flux-tree-line: 2px;
}
}
.flex-schema-item-group {
display: flex;
flex: 1 0 0;
align-items: center;
}
@keyframes skeleton-animation {
0% {
background-position: 100% 50%;