Update styling

This commit is contained in:
Jaco Greeff 2016-11-16 12:36:15 +01:00
parent 501c7369b0
commit 68efa70977
4 changed files with 19 additions and 7 deletions

View File

@ -19,5 +19,5 @@
}
.layout>div {
padding-bottom: 0.25em;
padding-bottom: 0.75em;
}

View File

@ -32,12 +32,12 @@
}
.overlay {
background: rgba(255, 255, 255, 0.75);
bottom: 0;
background: rgba(50, 50, 50, 0.85);
bottom: 0.5em;
left: -0.25em;
position: absolute;
right: -0.25em;
top: 0;
top: -0.25em;
z-index: 100;
padding: 1em;
}

View File

@ -59,9 +59,9 @@ export default class Dapps extends Component {
] }
/>
<Page>
{ this.renderList(this.store.sortedLocal) }
{ this.renderList(this.store.sortedBuiltin) }
{ this.renderList(this.store.sortedNetwork, externalOverlay) }
{ this.renderList(this.store.visibleLocal) }
{ this.renderList(this.store.visibleBuiltin) }
{ this.renderList(this.store.visibleNetwork, externalOverlay) }
</Page>
</div>
);

View File

@ -60,6 +60,18 @@ export default class DappsStore {
return this.apps.filter((app) => this.displayApps[app.id] && this.displayApps[app.id].visible);
}
@computed get visibleBuiltin () {
return this.visibleApps.filter((app) => app.type === 'builtin');
}
@computed get visibleLocal () {
return this.visibleApps.filter((app) => app.type === 'local');
}
@computed get visibleNetwork () {
return this.visibleApps.filter((app) => app.type === 'network');
}
@action openModal = () => {
this.modalOpen = true;
}