From b64c80acc9d877e2519cbb82d6dd786b17e6a88b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 30 Mar 2025 14:06:38 +0200 Subject: [PATCH] Schema: Reduce precision to pixels --- adminer/static/editing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/static/editing.js b/adminer/static/editing.js index 403ec9e2..d200104d 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -738,7 +738,7 @@ function schemaMouseup(event, db) { that = undefined; let s = ''; for (const key in tablePos) { - s += '_' + key + ':' + Math.round(tablePos[key][0] * 10000) / 10000 + 'x' + Math.round(tablePos[key][1] * 10000) / 10000; + s += '_' + key + ':' + Math.round(tablePos[key][0]) + 'x' + Math.round(tablePos[key][1]); } s = encodeURIComponent(s.substr(1)); const link = qs('#schema-link');