Show instance URL in accounts list
When logged-in, acct doesn't show @instance
This commit is contained in:
parent
3192c319ee
commit
df047131bb
2 changed files with 13 additions and 4 deletions
|
@ -63,7 +63,16 @@ function Accounts({ onClose }) {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<NameText
|
<NameText
|
||||||
account={account.info}
|
account={
|
||||||
|
moreThanOneAccount
|
||||||
|
? {
|
||||||
|
...account.info,
|
||||||
|
acct: /@/.test(account.info.acct)
|
||||||
|
? account.info.acct
|
||||||
|
: `${account.info.acct}@${account.instanceURL}`,
|
||||||
|
}
|
||||||
|
: account.info
|
||||||
|
}
|
||||||
showAcct
|
showAcct
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (isCurrent) {
|
if (isCurrent) {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
/* flex-wrap: wrap; */
|
||||||
border-bottom: var(--hairline-width) solid var(--outline-color);
|
border-bottom: var(--hairline-width) solid var(--outline-color);
|
||||||
}
|
}
|
||||||
#settings-container section > ul > li .current {
|
#settings-container section > ul > li .current {
|
||||||
|
@ -49,8 +49,8 @@
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
#settings-container section > ul > li > div {
|
#settings-container section > ul > li > div {
|
||||||
flex-grow: 1;
|
display: flex;
|
||||||
max-width: 100%;
|
align-items: center;
|
||||||
}
|
}
|
||||||
#settings-container section > ul > li > div.actions {
|
#settings-container section > ul > li > div.actions {
|
||||||
flex-basis: fit-content;
|
flex-basis: fit-content;
|
||||||
|
|
Loading…
Add table
Reference in a new issue