Commit 3013b543 authored by Miguel Rincon's avatar Miguel Rincon

Prevent runner list IP and version overflow

This change prevents the IP and version columns from overflowing
outside of their boundaries in the runner's admin view.

If any of the two fields overflow the container, they'll get truncated
with an ellipsis (...) and a tooltip will be shown on hover with the
full data.

Changelog: changed
parent 7a67e84d
<script>
import { GlTable, GlTooltipDirective, GlSkeletonLoader } from '@gitlab/ui';
import TooltipOnTruncate from '~/vue_shared/components/tooltip_on_truncate.vue';
import { getIdFromGraphQLId } from '~/graphql_shared/utils';
import { __, s__ } from '~/locale';
import TimeAgo from '~/vue_shared/components/time_ago_tooltip.vue';
......@@ -32,6 +33,7 @@ export default {
components: {
GlTable,
GlSkeletonLoader,
TooltipOnTruncate,
TimeAgo,
RunnerActionsCell,
RunnerSummaryCell,
......@@ -101,11 +103,15 @@ export default {
</template>
<template #cell(version)="{ item: { version } }">
{{ version }}
<tooltip-on-truncate class="gl-display-block gl-text-truncate" :title="version">
{{ version }}
</tooltip-on-truncate>
</template>
<template #cell(ipAddress)="{ item: { ipAddress } }">
{{ ipAddress }}
<tooltip-on-truncate class="gl-display-block gl-text-truncate" :title="ipAddress">
{{ ipAddress }}
</tooltip-on-truncate>
</template>
<template #cell(tagList)="{ item: { tagList } }">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment