mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Don't expand some anchor links in print
This commit is contained in:
parent
2dc036047f
commit
5b34d569f6
@ -296,16 +296,34 @@ let SpoolDetails = React.createClass({
|
||||
},
|
||||
|
||||
render() {
|
||||
let bitcoinIdValue = (
|
||||
<a target="_blank" href={'https://www.blocktrail.com/BTC/address/' + this.props.edition.bitcoin_id}>{this.props.edition.bitcoin_id}</a>
|
||||
const { edition: {
|
||||
bitcoin_id: bitcoinId,
|
||||
hash_as_address: hashAsAddress,
|
||||
btc_owner_address_noprefix: bitcoinOwnerAddress
|
||||
} } = this.props;
|
||||
|
||||
const bitcoinIdValue = (
|
||||
<a className="anchor-no-expand-print"
|
||||
target="_blank"
|
||||
href={'https://www.blocktrail.com/BTC/address/' + bitcoinId}>
|
||||
{bitcoinId}
|
||||
</a>
|
||||
);
|
||||
|
||||
let hashOfArtwork = (
|
||||
<a target="_blank" href={'https://www.blocktrail.com/BTC/address/' + this.props.edition.hash_as_address}>{this.props.edition.hash_as_address}</a>
|
||||
const hashOfArtwork = (
|
||||
<a className="anchor-no-expand-print"
|
||||
target="_blank"
|
||||
href={'https://www.blocktrail.com/BTC/address/' + hashAsAddress}>
|
||||
{hashAsAddress}
|
||||
</a>
|
||||
);
|
||||
|
||||
let ownerAddress = (
|
||||
<a target="_blank" href={'https://www.blocktrail.com/BTC/address/' + this.props.edition.btc_owner_address_noprefix}>{this.props.edition.btc_owner_address_noprefix}</a>
|
||||
const ownerAddress = (
|
||||
<a className="anchor-no-expand-print"
|
||||
target="_blank"
|
||||
href={'https://www.blocktrail.com/BTC/address/' + bitcoinOwnerAddress}>
|
||||
{bitcoinOwnerAddress}
|
||||
</a>
|
||||
);
|
||||
|
||||
return (
|
||||
|
@ -22,7 +22,11 @@ let HistoryIterator = React.createClass({
|
||||
return (
|
||||
<span>
|
||||
{historicalEventDescription}
|
||||
<a href={historicalEvent[2]} target="_blank">{contractName}</a>
|
||||
<a className="anchor-no-expand-print"
|
||||
target="_blank"
|
||||
href={historicalEvent[2]}>
|
||||
{contractName}
|
||||
</a>
|
||||
</span>
|
||||
);
|
||||
} else if(historicalEvent.length === 2) {
|
||||
|
@ -7,6 +7,11 @@
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
// Utility class to not automatically expand an anchor href after the text
|
||||
.anchor-no-expand-print:after {
|
||||
content: '' !important;
|
||||
}
|
||||
|
||||
// Replace navbar header with ascribe logo
|
||||
.ascribe-print-header {
|
||||
border-bottom: 1px solid rgba(0, 60, 105, 0.1);
|
||||
|
Loading…
Reference in New Issue
Block a user