diff --git a/static/skin/autoComplete/css/autoComplete.css b/static/skin/autoComplete/css/autoComplete.css
index 2434d6164..c4a9cc938 100644
--- a/static/skin/autoComplete/css/autoComplete.css
+++ b/static/skin/autoComplete/css/autoComplete.css
@@ -23,6 +23,9 @@
.autoComplete_wrapper > ul {
position: absolute;
+ min-width: 100%;
+ width: fit-content;
+ max-width: 600px;
max-height: 226px;
overflow-y: scroll;
top: 100%;
@@ -60,6 +63,11 @@
transition: all 0.2s ease;
}
+.autoComplete_wrapper > ul > li > a {
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
.autoComplete_wrapper > ul > li::selection {
color: rgba(#ffffff, 0);
background-color: rgba(#ffffff, 0);
diff --git a/static/skin/viewer.js b/static/skin/viewer.js
index baa620ef4..59242e591 100644
--- a/static/skin/viewer.js
+++ b/static/skin/viewer.js
@@ -92,7 +92,10 @@ function makeJSLink(jsCodeString, linkText, linkAttr="") {
// in the JS code we have to URI-encode a second time.
// (see https://stackoverflow.com/questions/33721510)
const uriEncodedJSCode = encodeURIComponent(jsCodeString);
- return `${linkText}`;
+ const linkPlainText = htmlDecode(linkText, "text/html");
+ linkAttr += ` href="javascript:${uriEncodedJSCode}"`;
+ linkAttr += ` title="${linkPlainText}"`;
+ return `${linkText}`;
}
function suggestionsApiURL()
diff --git a/test/server.cpp b/test/server.cpp
index 98483f0d6..066f9d463 100644
--- a/test/server.cpp
+++ b/test/server.cpp
@@ -57,7 +57,7 @@ const ResourceCollection resources200Compressible{
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/autoComplete/autoComplete.min.js" },
{ STATIC_CONTENT, "/ROOT%23%3F/skin/autoComplete/autoComplete.min.js?cacheid=1191aaaf" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/autoComplete/css/autoComplete.css" },
- { STATIC_CONTENT, "/ROOT%23%3F/skin/autoComplete/css/autoComplete.css?cacheid=ef30cd42" },
+ { STATIC_CONTENT, "/ROOT%23%3F/skin/autoComplete/css/autoComplete.css?cacheid=f2d376c4" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/i18n.js" },
{ STATIC_CONTENT, "/ROOT%23%3F/skin/i18n.js?cacheid=071abc9a" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.css" },
@@ -75,7 +75,7 @@ const ResourceCollection resources200Compressible{
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/taskbar.css" },
{ STATIC_CONTENT, "/ROOT%23%3F/skin/taskbar.css?cacheid=80d56607" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/viewer.js" },
- { STATIC_CONTENT, "/ROOT%23%3F/skin/viewer.js?cacheid=aca897b0" },
+ { STATIC_CONTENT, "/ROOT%23%3F/skin/viewer.js?cacheid=8ca16f13" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/fonts/Poppins.ttf" },
{ STATIC_CONTENT, "/ROOT%23%3F/skin/fonts/Poppins.ttf?cacheid=af705837" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/fonts/Roboto.ttf" },
@@ -323,11 +323,11 @@ R"EXPECTEDRESULT(
-
+
-
+
const blankPageUrl = root + "/skin/blank.html?cacheid=6b1fa032";