Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

set ledger column items to right align #3571

Merged
merged 1 commit into from
Aug 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions js/about/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ class LedgerTableRow extends ImmutableComponent {
const defaultSiteSetting = true

return <tr className={this.enabled ? '' : 'paymentsDisabled'}>
<td className='narrow' data-sort={this.padLeft(rank)}>{rank}</td>
<td className='wide'><a href={publisherURL} target='_blank'><img src={faviconURL} alt={site} /><span>{site}</span></a></td>
<td className='narrow'><SiteSettingCheckbox hostPattern={this.hostPattern} defaultValue={defaultSiteSetting} prefKey='ledgerPayments' siteSettings={this.props.siteSettings} checked={this.enabled} /></td>
<td data-sort={this.padLeft(views)}>{views}</td>
<td data-sort={this.padLeft(duration)}>{this.formattedTime}</td>
<td data-sort={this.padLeft(percentage)}>{percentage}</td>
<td className='alignRight' data-sort={this.padLeft(rank)}>{rank}</td>
<td><a href={publisherURL} target='_blank'><img src={faviconURL} alt={site} /><span>{site}</span></a></td>
<td><SiteSettingCheckbox hostPattern={this.hostPattern} defaultValue={defaultSiteSetting} prefKey='ledgerPayments' siteSettings={this.props.siteSettings} checked={this.enabled} /></td>
<td className='alignRight' data-sort={this.padLeft(views)}>{views}</td>
<td className='alignRight' data-sort={this.padLeft(duration)}>{this.formattedTime}</td>
<td className='alignRight' data-sort={this.padLeft(percentage)}>{percentage}</td>
</tr>
}
}
Expand Down Expand Up @@ -409,8 +409,8 @@ class PaymentHistoryRow extends ImmutableComponent {
var totalAmountStr = `${this.totalAmount} ${this.currency}`

return <tr>
<td className='narrow' data-sort={this.timestamp}>{date}</td>
<td className='wide' data-sort={this.satoshis}>{totalAmountStr}</td>
<td data-sort={this.timestamp}>{date}</td>
<td data-sort={this.satoshis}>{totalAmountStr}</td>
</tr>
}
}
Expand Down
18 changes: 10 additions & 8 deletions less/about/preferences.less
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,14 @@ table.sortableTable {
#ledgerTable {
height: ~"-webkit-calc(100vh - 300px)";
overflow-y: scroll;

tr {
th,
td {
padding: 0 15px;
}
}

}

.modal .dialog.paymentHistory .sectionTitle {
Expand Down Expand Up @@ -652,7 +660,6 @@ div.nextPaymentSubmission {
color: @mediumGray;
-webkit-font-smoothing: antialiased;
text-align: left;
width: 8%;
vertical-align: top;

a {
Expand All @@ -671,13 +678,8 @@ div.nextPaymentSubmission {
}
}

&.narrow {
width: 5%;
}

&.wide {
width: 20%;
text-align: left;
&.alignRight {
text-align: right;
}

input[type='range'] {
Expand Down