User menu: Move connection status to respective account type
This commit is contained in:
@@ -17,17 +17,9 @@ export default class UserMenuComponent extends Component {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="user-menu-popover">
|
<div class="user-menu-popover">
|
||||||
<div class="user-status">
|
|
||||||
{{#if @storage.connected}}
|
|
||||||
Connected as
|
|
||||||
<strong>{{@storage.userAddress}}</strong>
|
|
||||||
{{else}}
|
|
||||||
Not connected
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ul class="account-list">
|
<ul class="account-list">
|
||||||
<li class="account-item">
|
<li class="account-item">
|
||||||
|
<div class="account-header">
|
||||||
<div class="account-info">
|
<div class="account-info">
|
||||||
<Icon @name="server" @size={{18}} />
|
<Icon @name="server" @size={{18}} />
|
||||||
<span>RemoteStorage</span>
|
<span>RemoteStorage</span>
|
||||||
@@ -45,20 +37,38 @@ export default class UserMenuComponent extends Component {
|
|||||||
{{on "click" this.connectRS}}
|
{{on "click" this.connectRS}}
|
||||||
>Connect</button>
|
>Connect</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</li>
|
</div>
|
||||||
|
<div class="account-status">
|
||||||
<li class="account-item disabled">
|
{{#if @storage.connected}}
|
||||||
<div class="account-info">
|
<strong>{{@storage.userAddress}}</strong>
|
||||||
<Icon @name="globe" @size={{18}} />
|
{{else}}
|
||||||
<span>OpenStreetMap</span>
|
Not connected
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="account-item disabled">
|
<li class="account-item disabled">
|
||||||
|
<div class="account-header">
|
||||||
|
<div class="account-info">
|
||||||
|
<Icon @name="globe" @size={{18}} />
|
||||||
|
<span>OpenStreetMap</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="account-status">
|
||||||
|
Coming soon
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="account-item disabled">
|
||||||
|
<div class="account-header">
|
||||||
<div class="account-info">
|
<div class="account-info">
|
||||||
<Icon @name="zap" @size={{18}} />
|
<Icon @name="zap" @size={{18}} />
|
||||||
<span>Nostr</span>
|
<span>Nostr</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="account-status">
|
||||||
|
Coming soon
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -216,14 +216,6 @@ body {
|
|||||||
/* background: rgb(0 0 0 / 10%); Optional dimming */
|
/* background: rgb(0 0 0 / 10%); Optional dimming */
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-status {
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
color: #666;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.account-list {
|
.account-list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -231,10 +223,32 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.account-item {
|
.account-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 1rem 0;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account-item:first-child {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0.75rem 0;
|
}
|
||||||
|
|
||||||
|
.account-status {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: #898989;
|
||||||
|
margin-top: 0.35rem;
|
||||||
|
margin-left: calc(18px + 0.75rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.account-item.disabled {
|
.account-item.disabled {
|
||||||
|
|||||||
Reference in New Issue
Block a user