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 <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) {

View file

@ -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;