|
42 | 42 |
|
43 | 43 | <v-row v-for="(axis, axisIndex) in visibleAxes" :key="axisIndex" dense> |
44 | 44 | <!-- Regular home buttons --> |
45 | | - <v-col cols="2" order="1" sm="4" md="1" order-md="1"> |
| 45 | + <v-col cols="4" order="1" sm="4" md="1" order-md="1"> |
46 | 46 | <v-row dense> |
47 | 47 | <v-col> |
48 | 48 | <code-btn color="warning" tile block :code="`G10 L20 P${currentWorkplace} ${axis.letter}0`" |
|
51 | 51 | </code-btn> |
52 | 52 | </v-col> |
53 | 53 | </v-row> |
| 54 | + <v-divider class="my-4 d-md-none" /> |
54 | 55 | </v-col> |
55 | 56 |
|
56 | 57 | <!-- Decreasing movements --> |
57 | 58 | <v-col cols="6" order="3" md="5" order-md="2"> |
58 | 59 | <v-row dense> |
59 | | - <v-col v-for="index in numMoveSteps" :key="index" :class="getMoveCellClass(index - 1)"> |
60 | | - <code-btn :code="getMoveCode(axis, index - 1, true)" no-wait |
61 | | - @contextmenu.prevent="showMoveStepDialog(axis.letter, index - 1)" block tile |
62 | | - class="move-btn"> |
| 60 | + <v-col |
| 61 | + v-for="index in numMoveSteps" |
| 62 | + :key="index" |
| 63 | + :class="[ |
| 64 | + getMoveCellClass(index - 1), |
| 65 | + (index === numMoveSteps ? 'd-none d-md-flex' : '') |
| 66 | + ]" |
| 67 | + > |
| 68 | + <code-btn |
| 69 | + :code="getMoveCode(axis, index - 1, true)" |
| 70 | + no-wait |
| 71 | + @contextmenu.prevent="showMoveStepDialog(axis.letter, index - 1)" |
| 72 | + block |
| 73 | + tile |
| 74 | + class="move-btn" |
| 75 | + > |
63 | 76 | <v-icon>mdi-chevron-left</v-icon> |
64 | 77 | {{ axis.letter + showSign(-moveSteps(axis.letter)[index - 1]) }} |
65 | 78 | </code-btn> |
66 | 79 | </v-col> |
67 | 80 | </v-row> |
| 81 | + <v-row dense class="d-md-none"> |
| 82 | + <v-col v-if="numMoveSteps > 0" :class="getMoveCellClass(numMoveSteps - 1)"> |
| 83 | + <code-btn |
| 84 | + :code="getMoveCode(axis, numMoveSteps - 1, true)" |
| 85 | + no-wait |
| 86 | + @contextmenu.prevent="showMoveStepDialog(axis.letter, numMoveSteps - 1)" |
| 87 | + block |
| 88 | + tile |
| 89 | + class="move-btn" |
| 90 | + > |
| 91 | + <v-icon>mdi-chevron-left</v-icon> |
| 92 | + {{ axis.letter + showSign(-moveSteps(axis.letter)[numMoveSteps - 1]) }} |
| 93 | + </code-btn> |
| 94 | + </v-col> |
| 95 | + </v-row> |
68 | 96 | </v-col> |
69 | 97 |
|
70 | 98 | <!-- Increasing movements --> |
71 | 99 | <v-col cols="6" order="4" md="5" order-md="3"> |
72 | 100 | <v-row dense> |
73 | | - <v-col v-for="index in numMoveSteps" :key="index" :class="getMoveCellClass(numMoveSteps - index)"> |
74 | | - <code-btn :code="getMoveCode(axis, numMoveSteps - index, false)" no-wait |
75 | | - @contextmenu.prevent="showMoveStepDialog(axis.letter, numMoveSteps - index)" block |
76 | | - tile class="move-btn"> |
| 101 | + <v-col |
| 102 | + v-for="index in numMoveSteps" |
| 103 | + :key="index" |
| 104 | + :class="[ |
| 105 | + getMoveCellClass(numMoveSteps - index), |
| 106 | + (index === 1 ? 'd-none d-md-flex' : '') |
| 107 | + ]" |
| 108 | + > |
| 109 | + <code-btn |
| 110 | + :code="getMoveCode(axis, numMoveSteps - index, false)" |
| 111 | + no-wait |
| 112 | + @contextmenu.prevent="showMoveStepDialog(axis.letter, numMoveSteps - index)" |
| 113 | + block |
| 114 | + tile |
| 115 | + class="move-btn" |
| 116 | + > |
77 | 117 | {{ axis.letter + showSign(moveSteps(axis.letter)[numMoveSteps - index]) }} |
78 | 118 | <v-icon>mdi-chevron-right</v-icon> |
79 | 119 | </code-btn> |
80 | 120 | </v-col> |
81 | 121 | </v-row> |
| 122 | + <v-row dense class="d-md-none"> |
| 123 | + <v-col v-if="numMoveSteps > 0" :class="getMoveCellClass(numMoveSteps - 1)"> |
| 124 | + <code-btn |
| 125 | + :code="getMoveCode(axis, numMoveSteps - 1, false)" |
| 126 | + no-wait |
| 127 | + @contextmenu.prevent="showMoveStepDialog(axis.letter, numMoveSteps - 1)" |
| 128 | + block |
| 129 | + tile |
| 130 | + class="move-btn" |
| 131 | + > |
| 132 | + {{ axis.letter + showSign(moveSteps(axis.letter)[numMoveSteps - 1]) }} |
| 133 | + <v-icon>mdi-chevron-right</v-icon> |
| 134 | + </code-btn> |
| 135 | + </v-col> |
| 136 | + </v-row> |
82 | 137 | </v-col> |
83 | 138 |
|
84 | 139 | <!-- Set axis--> |
85 | | - <v-col cols="2" order="2" offset="8" sm="4" offset-sm="4" md="1" order-md="4" offset-md="0"> |
| 140 | + <v-col cols="4" order="2" offset="4" sm="4" offset-sm="4" md="1" order-md="4" offset-md="0"> |
86 | 141 | <v-row dense> |
87 | 142 | <v-col> |
88 | 143 | <code-btn tile block :color="axis.homed ? 'primary' : 'warning'" :disabled="uiFrozen" |
|
92 | 147 | </code-btn> |
93 | 148 | </v-col> |
94 | 149 | </v-row> |
| 150 | + <v-divider class="my-4 d-md-none" /> |
95 | 151 | </v-col> |
96 | 152 | <v-col cols="12" class="d-md-none"> |
97 | 153 | <v-divider class="my-4" /> |
|
0 commit comments