1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 07:52:23 +00:00

Fix dynamic list layout

This commit is contained in:
Alexandre Iooss 2020-04-10 22:37:20 +02:00
parent 64499b65bb
commit 5c3cc607e8
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

View File

@ -86,7 +86,7 @@ function getMatchedNotes(pattern, fun) {
* Generate a <li> entry with a given id and text
*/
function li(id, text, extra_css) {
return "<li class=\"list-group-item p-1 text-truncate " + extra_css + "\"" +
return "<li class=\"list-group-item py-1 px-2 d-flex justify-content-between align-items-center text-truncate " + extra_css + "\"" +
" id=\"" + id + "\">" + text + "</li>\n";
}