Show instance URL in accounts list

When logged-in, acct doesn't show @instance
This commit is contained in:
Lim Chee Aun 2023-07-14 14:46:57 +08:00
parent 3192c319ee
commit df047131bb
2 changed files with 13 additions and 4 deletions

View file

@ -63,7 +63,16 @@ function Accounts({ onClose }) {
}}
/>
<NameText
account={account.info}
account={
moreThanOneAccount
? {
...account.info,
acct: /@/.test(account.info.acct)
? account.info.acct
: `${account.info.acct}@${account.instanceURL}`,
}
: account.info
}
showAcct
onClick={() => {
if (isCurrent) {

View file

@ -31,7 +31,7 @@
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
/* flex-wrap: wrap; */
border-bottom: var(--hairline-width) solid var(--outline-color);
}
#settings-container section > ul > li .current {
@ -49,8 +49,8 @@
vertical-align: middle;
}
#settings-container section > ul > li > div {
flex-grow: 1;
max-width: 100%;
display: flex;
align-items: center;
}
#settings-container section > ul > li > div.actions {
flex-basis: fit-content;