if (this.words) {
const aspect = this.form.clientWidth / window.innerHeight;
//TODO image ratio
- let count = 35;
+ let count = parseInt(this.preset.n) || 35;
let cols = Math.round(Math.sqrt(count) * aspect**.5);
count = cols * Math.ceil(count / cols);
this.form.style['grid-template-columns'] = `repeat(${cols}, 1fr)`;