Skip to content

Commit

Permalink
fix: Tool rows in even lengths, and more visually tidy (#2041)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Dej <[email protected]>
  • Loading branch information
Swamp-Ig and meteyou authored Nov 14, 2024
1 parent f4ee8db commit 42a4d85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/panels/Extruder/ExtruderControlPanelTools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ControlMixin
mdiPrinter3dNozzle = mdiPrinter3dNozzle
get rows() {
const cols = 6
const len = this.toolchangeMacros.length
const cols = Math.ceil(len / Math.ceil(len / 6))
let rows = []
for (let i = 0; i < this.toolchangeMacros.length; i += cols) {
Expand Down

0 comments on commit 42a4d85

Please sign in to comment.