From 51aec976e6602080c2f99161c17a0532f70db3ec Mon Sep 17 00:00:00 2001 From: Robin Scholtes Date: Mon, 24 Apr 2023 22:38:51 +1200 Subject: [PATCH] [#181] add data-title attribute to stubHtml operation so we can add icons to the list items for mobile --- src/web/HTMLOperation.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/HTMLOperation.mjs b/src/web/HTMLOperation.mjs index 3f59dc48..11f9be12 100755 --- a/src/web/HTMLOperation.mjs +++ b/src/web/HTMLOperation.mjs @@ -46,7 +46,7 @@ class HTMLOperation { * @returns {string} */ toStubHtml(removeIcon) { - let html = "
  • ${titleFromWikiLink(this.infoURL)}` : ""; @@ -60,6 +60,8 @@ class HTMLOperation { if (removeIcon) { html += "delete"; + } else if (!removeIcon && window.innerWidth < this.app.breakpoint ){ + html += "check"; } html += "
  • ";