1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-05 06:07:57 +02:00

Schema: Reduce precision to pixels

This commit is contained in:
Jakub Vrana
2025-03-30 14:06:38 +02:00
parent fa22df0d7f
commit b64c80acc9

View File

@@ -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');