fix: remove hacky code

pull/7803/head
Arik Chakma 1 month ago
parent efb2268500
commit dd462dd031
  1. 7
      scripts/migrate-editor-roadmap.ts

@ -46,13 +46,6 @@ for (const roadmapId of editorRoadmapIds) {
const width = +(node?.width || node?.style?.width || 0);
const height = +(node?.height || node?.style?.height || 0);
if (['legend', 'title', 'label', 'linksgroup'].includes(node.type!)) {
delete node?.width;
delete node?.height;
delete node?.style?.width;
delete node?.style?.height;
}
const ADDITIONAL_WIDTH = 1;
// adding one `1px` in width to avoid the node to be cut in half
// this is a quick fix to avoid the issue

Loading…
Cancel
Save