mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 01:08:50 +01:00
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
|
||||
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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue