Clean up prop passing from FileTile to FileTileStream
This commit is contained in:
parent
9d0aa0d8da
commit
1c19537883
2 changed files with 6 additions and 3 deletions
|
@ -129,7 +129,7 @@ export let FileTileStream = React.createClass({
|
|||
|
||||
return (
|
||||
<section className={ 'file-tile card ' + (obscureNsfw ? 'card-obscured ' : '') } onMouseEnter={this.handleMouseOver} onMouseLeave={this.handleMouseOut}>
|
||||
<div className="row-fluid card-content file-tile__row">
|
||||
<div className={"row-fluid card-content file-tile__row"}>
|
||||
<div className="span3">
|
||||
<a href={'/?show=' + this.props.name}><Thumbnail className="file-tile__thumbnail" src={metadata.thumbnail} alt={'Photo for ' + (title || this.props.name)} /></a>
|
||||
</div>
|
||||
|
@ -201,7 +201,6 @@ export let FileTile = React.createClass({
|
|||
return null;
|
||||
}
|
||||
|
||||
return <FileTileStream name={this.props.name} available={this.props.available} sdHash={this.state.sdHash}
|
||||
metadata={this.state.metadata} />;
|
||||
return <FileTileStream sdHash={this.state.sdHash} metadata={this.state.metadata} {... this.props} />;
|
||||
}
|
||||
});
|
|
@ -4,6 +4,10 @@
|
|||
height: $spacing-vertical * 7;
|
||||
}
|
||||
|
||||
.file-tile__row--unavailable {
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
.file-tile__thumbnail {
|
||||
max-width: 100%;
|
||||
max-height: $spacing-vertical * 7;
|
||||
|
|
Loading…
Reference in a new issue