limit bambu file option width, workaround obj import with 3dsmax padding

This commit is contained in:
Stewart Allen 2025-04-18 17:50:36 -04:00
commit 9478a952b1
2 changed files with 3 additions and 6 deletions

View file

@ -456,10 +456,7 @@ self.kiri.load(api => {
.toLowerCase() .toLowerCase()
.replace('.gcode','') .replace('.gcode','')
.replace('.3mf',''); .replace('.3mf','');
return h.option({ return h.option(name);
_: name,
style: "max-width: 20em"
});
})); }));
filelist.selectedIndex = 0; filelist.selectedIndex = 0;
filelist.onchange(); filelist.onchange();
@ -1017,7 +1014,7 @@ self.kiri.load(api => {
h.span({ class: "fat5 grow" }), h.span({ class: "fat5 grow" }),
h.i({ class: "fa-solid fa-rotate" }) h.i({ class: "fa-solid fa-rotate" })
])), ])),
h.select({ id: "bbl_files" }, []), h.select({ id: "bbl_files", style: "max-width: 15em" }, []),
h.div({ class: "var-row" }, [ h.div({ class: "var-row" }, [
h.label('size'), h.label('size'),
h.input({ id: "bbl_file_size", size: 12, readonly }) h.input({ id: "bbl_file_size", size: 12, readonly })

View file

@ -27,7 +27,7 @@ function parseAsync(text) {
function parse(text) { function parse(text) {
let lines = text.split('\n').map(l => l.trim()); let lines = text.replaceAll(/ +/g,' ').split('\n').map(l => l.trim());
let verts = []; let verts = [];
let faces = []; let faces = [];
let objs = [ faces ]; let objs = [ faces ];