mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
Merge branch 'AD-601-in-piece_detail-longer-titles-are'
Conflicts: .gitignore
This commit is contained in:
commit
72821001b7
2
.gitignore
vendored
2
.gitignore
vendored
@ -18,4 +18,4 @@ node_modules/*
|
|||||||
|
|
||||||
build
|
build
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
@ -101,6 +101,9 @@ A: Easily by starting the your gulp process with the following command:
|
|||||||
ONION_BASE_URL='/' ONION_SERVER_URL='http://localhost.com:8000/' gulp serve
|
ONION_BASE_URL='/' ONION_SERVER_URL='http://localhost.com:8000/' gulp serve
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Q: I want to know all dependencies that get bundled into the live build.
|
||||||
|
A: ```browserify -e js/app.js --list > webapp-dependencies.txt```
|
||||||
|
|
||||||
Reading list
|
Reading list
|
||||||
============
|
============
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ let DetailProperty = React.createClass({
|
|||||||
separator: React.PropTypes.string,
|
separator: React.PropTypes.string,
|
||||||
labelClassName: React.PropTypes.string,
|
labelClassName: React.PropTypes.string,
|
||||||
valueClassName: React.PropTypes.string,
|
valueClassName: React.PropTypes.string,
|
||||||
breakWord: React.PropTypes.bool
|
ellipsis: React.PropTypes.bool
|
||||||
},
|
},
|
||||||
|
|
||||||
getDefaultProps() {
|
getDefaultProps() {
|
||||||
@ -25,6 +25,16 @@ let DetailProperty = React.createClass({
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
let value = this.props.value;
|
let value = this.props.value;
|
||||||
|
let styles = {};
|
||||||
|
|
||||||
|
if(this.props.ellipsis) {
|
||||||
|
styles = {
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
overflow: 'hidden',
|
||||||
|
textOverflow: 'ellipsis'
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (this.props.children){
|
if (this.props.children){
|
||||||
value = (
|
value = (
|
||||||
@ -32,7 +42,9 @@ let DetailProperty = React.createClass({
|
|||||||
<div className="col-xs-6 col-xs-height col-bottom no-padding">
|
<div className="col-xs-6 col-xs-height col-bottom no-padding">
|
||||||
{ this.props.value }
|
{ this.props.value }
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xs-6 col-xs-height">
|
<div
|
||||||
|
className="col-xs-6 col-xs-height"
|
||||||
|
style={styles}>
|
||||||
{ this.props.children }
|
{ this.props.children }
|
||||||
</div>
|
</div>
|
||||||
</div>);
|
</div>);
|
||||||
@ -43,7 +55,9 @@ let DetailProperty = React.createClass({
|
|||||||
<div className={this.props.labelClassName + ' col-xs-height col-bottom ascribe-detail-property-label'}>
|
<div className={this.props.labelClassName + ' col-xs-height col-bottom ascribe-detail-property-label'}>
|
||||||
{ this.props.label + this.props.separator}
|
{ this.props.label + this.props.separator}
|
||||||
</div>
|
</div>
|
||||||
<div className={this.props.valueClassName + ' col-xs-height col-bottom ascribe-detail-property-value'}>
|
<div
|
||||||
|
className={this.props.valueClassName + ' col-xs-height col-bottom ascribe-detail-property-value'}
|
||||||
|
style={styles}>
|
||||||
{value}
|
{value}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -273,10 +273,16 @@ let EditionSummary = React.createClass({
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="ascribe-detail-header">
|
<div className="ascribe-detail-header">
|
||||||
<EditionDetailProperty label={getLangText('EDITION')}
|
<EditionDetailProperty
|
||||||
|
label={getLangText('EDITION')}
|
||||||
value={this.props.edition.edition_number + ' ' + getLangText('of') + ' ' + this.props.edition.num_editions} />
|
value={this.props.edition.edition_number + ' ' + getLangText('of') + ' ' + this.props.edition.num_editions} />
|
||||||
<EditionDetailProperty label={getLangText('ID')} value={ this.props.edition.bitcoin_id } />
|
<EditionDetailProperty
|
||||||
<EditionDetailProperty label={getLangText('OWNER')} value={ this.props.edition.owner } />
|
label={getLangText('ID')}
|
||||||
|
value={ this.props.edition.bitcoin_id }
|
||||||
|
ellipsis={true} />
|
||||||
|
<EditionDetailProperty
|
||||||
|
label={getLangText('OWNER')}
|
||||||
|
value={ this.props.edition.owner } />
|
||||||
{this.getStatus()}
|
{this.getStatus()}
|
||||||
{this.getActions()}
|
{this.getActions()}
|
||||||
<hr/>
|
<hr/>
|
||||||
|
@ -61,6 +61,9 @@ $ascribe-accordion-list-font: 'Source Sans Pro';
|
|||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
margin: .2em 0 .3em 0;
|
margin: .2em 0 .3em 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: #666;
|
color: #666;
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
|
|
||||||
|
.ascribe-piece-list-toolbar {
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.search-bar {
|
.search-bar {
|
||||||
max-width: 200px;
|
max-width: 160px;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user