mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
Schema: Reduce precision to pixels
This commit is contained in:
@@ -738,7 +738,7 @@ function schemaMouseup(event, db) {
|
|||||||
that = undefined;
|
that = undefined;
|
||||||
let s = '';
|
let s = '';
|
||||||
for (const key in tablePos) {
|
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));
|
s = encodeURIComponent(s.substr(1));
|
||||||
const link = qs('#schema-link');
|
const link = qs('#schema-link');
|
||||||
|
Reference in New Issue
Block a user