fix(chat): append space between bookmarks

This commit is contained in:
Daniel Kempkens 2023-08-21 16:54:27 +02:00
parent 4b4c01bb14
commit 14dceccfec
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -29,6 +29,7 @@
<script> <script>
const bookmarks = document.querySelectorAll('[data-bookmark]'); const bookmarks = document.querySelectorAll('[data-bookmark]');
const header = document.getElementsByTagName('h2')[0]; const header = document.getElementsByTagName('h2')[0];
const space = document.createTextNode(' ');
let container = document.createElement('p'); let container = document.createElement('p');
for (var i = 0; i < bookmarks.length; i++) { for (var i = 0; i < bookmarks.length; i++) {
@ -39,6 +40,7 @@
bookmarkElement.setAttribute('role', 'button'); bookmarkElement.setAttribute('role', 'button');
container.appendChild(bookmarkElement); container.appendChild(bookmarkElement);
container.appendChild(space);
} }
header.after(container); header.after(container);