update tailwindcss & tweak styles
This commit is contained in:
@@ -111,9 +111,9 @@
|
||||
}
|
||||
|
||||
const options = opts.options;
|
||||
if (options.length === 0) return;
|
||||
const avg = options.reduce((acc, item) => acc + getLabel(item).length, 0) / options.length;
|
||||
container.style.width = `${avg * 2.5}ch`;
|
||||
console.log(`minWidth: ${avg * 2.5}ch`);
|
||||
};
|
||||
|
||||
f(buildOpts);
|
||||
|
||||
Reference in New Issue
Block a user