Skip to content

Commit 2d3f25e

Browse files
committed
Fix hit area of task/job icons
1 parent 46504f8 commit 2d3f25e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/components/cylc/table/Table.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3333
:class="{ 'flow-none': isFlowNone(item.task.node.flowNums) }"
3434
:data-cy-task-name="item.task.name"
3535
>
36-
<div style="width: 2em;">
36+
<div v-bind="jobIconParentProps">
3737
<Task
3838
v-command-menu="item.task"
3939
:task="item.task.node"
4040
:startTime="item.latestJob?.node?.startedTime"
4141
/>
4242
</div>
43-
<div style="width: 2em;">
43+
<div v-bind="jobIconParentProps">
4444
<Job
4545
v-if="item.latestJob"
4646
v-command-menu="item.latestJob"
@@ -93,14 +93,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
9393
>
9494
<td :colspan="3">
9595
<div class="d-flex align-content-center flex-nowrap">
96-
<div class="d-flex" style="margin-left: 2em;">
96+
<div v-bind="jobIconParentProps" :style="{ marginLeft: jobIconParentProps.style.width }">
9797
<Job
9898
v-command-menu="job"
9999
:key="`${job.id}-summary-${index}`"
100100
:status="job.node.state"
101101
/>
102-
<span class="ml-2">#{{ job.node.submitNum }}</span>
103102
</div>
103+
<span>#{{ job.node.submitNum }}</span>
104104
</div>
105105
</td>
106106
<td>{{ job.node.platform }}</td>
@@ -288,6 +288,11 @@ const taskRunTimes = computed(() => new Map(
288288
])
289289
))
290290
291+
const jobIconParentProps = {
292+
class: ['d-flex', 'align-center'],
293+
style: { width: '2em' },
294+
}
295+
291296
const itemsPerPageOptions = [
292297
{ value: 10, title: '10' },
293298
{ value: 20, title: '20' },

0 commit comments

Comments
 (0)