Fix mobile layout
Unfortunately also breaks the animation when opening contributor details for now. Couldn't get it to work again.
This commit is contained in:
@@ -12,14 +12,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="metadata {{if contributor.isCurrentUser 'current-user'}} {{if contributor.showMetadata 'visible'}}">
|
<tr class="metadata {{if contributor.isCurrentUser 'current-user'}} {{if contributor.showMetadata 'visible'}}">
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<dl>
|
<ul>
|
||||||
<dt>Ethereum address</dt>
|
<li><a href="https://testnet.etherscan.io/address/{{contributor.address}}">Inspect Ethereum transactions</a></li>
|
||||||
<dd><a href="https://testnet.etherscan.io/address/{{contributor.address}}">{{contributor.address}}</a></dd>
|
|
||||||
{{#if contributor.ipfsHash}}
|
{{#if contributor.ipfsHash}}
|
||||||
<dt>IPFS profile data</dt>
|
<li><a href="https://ipfs.io/ipfs/{{contributor.ipfsHash}}">Inspect IPFS profile</a></li>
|
||||||
<dd><a href="https://ipfs.io/ipfs/{{contributor.ipfsHash}}">{{contributor.ipfsHash}}</a></dd>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</dl>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{{#each proposals as |proposal|}}
|
{{#each proposals as |proposal|}}
|
||||||
<li>
|
<li>
|
||||||
<span class="id">#{{proposal.id}}</span>
|
<span class="id">#{{proposal.id}}</span>
|
||||||
Issue{{#if proposal.executed}}d{{/if}}
|
|
||||||
<span class="amount">{{proposal.amount}}</span><span class="symbol">₭S</span>
|
<span class="amount">{{proposal.amount}}</span><span class="symbol">₭S</span>
|
||||||
to <span class="recipient" title="{{proposal.recipientAddress}}">{{proposal.recipientName}}</span>
|
for <span class="recipient" title="{{proposal.recipientAddress}}">{{proposal.recipientName}}</span>
|
||||||
<span class="votes">({{proposal.votesCount}}/{{proposal.votesNeeded}} votes)</span>
|
<span class="votes">({{proposal.votesCount}}/{{proposal.votesNeeded}} votes)</span>
|
||||||
|
|
||||||
{{#unless proposal.executed}}<button {{action "confirm" proposal.id}}>+1</button>{{/unless}}
|
{{#unless proposal.executed}}<button {{action "confirm" proposal.id}}>+1</button>{{/unless}}
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ table.contributor-list {
|
|||||||
|
|
||||||
&.metadata {
|
&.metadata {
|
||||||
height: 0;
|
height: 0;
|
||||||
|
transition: all 0.2s ease-out;
|
||||||
|
|
||||||
td {
|
td {
|
||||||
padding: 0 1.2rem;
|
padding: 0 1.2rem;
|
||||||
transition: all 0.2s ease-out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -28,41 +28,27 @@ table.contributor-list {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dl {
|
ul {
|
||||||
|
list-style: none;
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
overflow: hidden;
|
||||||
font-size: 1rem;
|
height: 0;
|
||||||
dt, dd {
|
transition: all 0.2s ease-out;
|
||||||
display: inline-block;
|
|
||||||
overflow: hidden;
|
|
||||||
height: 0;
|
|
||||||
line-height: 1.6rem;
|
|
||||||
transition: all 0.2s ease-out;
|
|
||||||
}
|
|
||||||
dt {
|
|
||||||
clear: both;
|
|
||||||
float: left;
|
|
||||||
width: 30%;
|
|
||||||
}
|
|
||||||
dd {
|
|
||||||
float: right;
|
|
||||||
width: 70%;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.visible {
|
li {
|
||||||
td {
|
display: inline;
|
||||||
padding: 1rem 1.2rem;
|
&+li {
|
||||||
}
|
margin-left: 1rem;
|
||||||
|
|
||||||
dl {
|
|
||||||
dt, dd {
|
|
||||||
height: auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.visible {
|
||||||
|
height: auto;
|
||||||
|
ul {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ ul.proposal-list {
|
|||||||
.votes {
|
.votes {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: lightblue;
|
color: lightblue;
|
||||||
padding-left: 1rem;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
|||||||
Reference in New Issue
Block a user