ssb: Fix private conversation keyboard alt+navigation. #125

This commit is contained in:
2025-08-13 19:24:25 -04:00
parent f902d0374c
commit 7cec0f7d61
3 changed files with 26 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&lFyDLIdToivp5zCqHBCRRBs3ESnWoKRi9JQJEkuclQ4=.sha256" "previous": "&5T+xPy3LhgmU2ape4dlJLRhYhmE5J1SQkI+wFm6Fss4=.sha256"
} }

View File

@@ -141,7 +141,9 @@ class TfElement extends LitElement {
'', '',
'@', '@',
'👍', '👍',
'🔐', ...Object.keys(this.grouped_private_messages)
.sort()
.map((x) => '🔐' + JSON.parse(x).join(',')),
...this.channels.map((x) => '#' + x), ...this.channels.map((x) => '#' + x),
]; ];
let index = channel_names.indexOf(this.hash.substring(1)); let index = channel_names.indexOf(this.hash.substring(1));

View File

@@ -258,26 +258,28 @@ class TfTabNewsElement extends LitElement {
style=${this.hash == '#👍' ? 'font-weight: bold' : undefined} style=${this.hash == '#👍' ? 'font-weight: bold' : undefined}
>${this.unread_status('👍')}👍votes</a >${this.unread_status('👍')}👍votes</a
> >
${Object.keys(this?.grouped_private_messages ?? [])?.map( ${Object.keys(this?.grouped_private_messages ?? [])
(key) => html` ?.sort()
<a ?.map(
href=${'#🔐' + JSON.parse(key).join(',')} (key) => html`
class="w3-bar-item w3-button" <a
style=${this.hash == '#🔐' + JSON.parse(key).join(',') href=${'#🔐' + JSON.parse(key).join(',')}
? 'font-weight: bold' class="w3-bar-item w3-button"
: undefined} style=${this.hash == '#🔐' + JSON.parse(key).join(',')
>${(key != '[]' ? JSON.parse(key) : [this.whoami]).map( ? 'font-weight: bold'
(id) => html` : undefined}
<tf-user >${(key != '[]' ? JSON.parse(key) : [this.whoami]).map(
id=${id} (id) => html`
nolink="true" <tf-user
.users=${this.users} id=${id}
></tf-user> nolink="true"
` .users=${this.users}
)}</a ></tf-user>
> `
` )}</a
)} >
`
)}
${Object.keys(this.drafts) ${Object.keys(this.drafts)
.sort() .sort()
.map( .map(