From: Jakub Vrana Date: Sun, 30 Mar 2025 12:06:38 +0000 (+0200) Subject: Schema: Reduce precision to pixels X-Git-Tag: v5.1.1~52 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=b64c80acc9d877e2519cbb82d6dd786b17e6a88b;p=adminer.git Schema: Reduce precision to pixels --- 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');