break words (because onion URLs are too big and they break the layout).

This commit is contained in:
fiatjaf
2022-02-12 14:25:42 -03:00
parent f0aec39bc3
commit 022525aa26

13
main.js
View File

@@ -82,7 +82,18 @@ const App = {
h('tr', [h('th'), h('th', 'connect'), h('th', 'read'), h('th', 'write')]), h('tr', [h('th'), h('th', 'connect'), h('th', 'read'), h('th', 'write')]),
...this.relays.map(url => ...this.relays.map(url =>
h('tr', [ h('tr', [
h('th', {style: {textAlign: 'right'}}, url), h(
'th',
{
style: {
textAlign: 'right',
whiteSpace: 'pre-wrap',
wordWrap: 'break-word',
wordBreak: 'break-all'
}
},
url
),
...['didConnect', 'didQuery', 'didPublish'].map(attr => ...['didConnect', 'didQuery', 'didPublish'].map(attr =>
h( h(
'td', 'td',