From: Tobias Sachs Date: Fri, 18 Dec 2020 07:38:44 +0000 (+0100) Subject: 0.4: - improve position of search box X-Git-Url: https://src.twobees.de/?a=commitdiff_plain;h=b351a02426870c56ee3a079ff07e8bc15362b0df;p=tampermonkeyscripts.git 0.4: - improve position of search box --- diff --git a/AzureDevOpsChangesetCommentSearch.js b/AzureDevOpsChangesetCommentSearch.js index d018801..c1e89af 100644 --- a/AzureDevOpsChangesetCommentSearch.js +++ b/AzureDevOpsChangesetCommentSearch.js @@ -1,6 +1,6 @@ // ==UserScript== // @name ADS changeset comment search -// @version 0.3 +// @version 0.4 // @description Places a searchbox somewhere to search commit messages // @author Tobias Sachs // @match https://ads/* @@ -9,6 +9,7 @@ // @downloadURL https://src.twobees.de/?p=tampermonkeyscripts.git;a=blob_plain;f=AzureDevOpsChangesetCommentSearch.js;hb=HEAD // ==/UserScript== +// 0.4: - improve position of search box // 0.3: - fix abort search // - filter reuslts by committers name // - no need for an observer @@ -29,13 +30,12 @@ let searchTerm = ""; GM_addStyle(`#ts_cs_search { - display: block; - background: white; - position: absolute; - left: 450px; - top: 0px; - height: auto; - z-index: 9999; + position: absolute; + left: 50%; + top: 0px; + height: auto; + z-index: 9999; + transform: translateX(-50%); }`); GM_addStyle(`.ts_match { background: orange; @@ -190,7 +190,7 @@ let addSearch = () => { console.debug("adding searchbox"); let html = ``;