Commit 093690d0 authored by Paul Slaughter's avatar Paul Slaughter

Update MR deployment to use .label-truncate with .deploy-link

parent df567ddb
<script> <script>
import Icon from '~/vue_shared/components/icon.vue'; import Icon from '~/vue_shared/components/icon.vue';
import TooltipOnTruncate from '~/vue_shared/components/tooltip_on_truncate.vue';
import timeagoMixin from '../../vue_shared/mixins/timeago'; import timeagoMixin from '../../vue_shared/mixins/timeago';
import tooltip from '../../vue_shared/directives/tooltip'; import tooltip from '../../vue_shared/directives/tooltip';
import LoadingButton from '../../vue_shared/components/loading_button.vue'; import LoadingButton from '../../vue_shared/components/loading_button.vue';
...@@ -16,6 +17,7 @@ export default { ...@@ -16,6 +17,7 @@ export default {
MemoryUsage, MemoryUsage,
StatusIcon, StatusIcon,
Icon, Icon,
TooltipOnTruncate,
}, },
directives: { directives: {
tooltip, tooltip,
...@@ -88,14 +90,20 @@ export default { ...@@ -88,14 +90,20 @@ export default {
<span> <span>
Deployed to Deployed to
</span> </span>
<a <tooltip-on-truncate
:href="deployment.url" :title="deployment.name"
target="_blank" truncate-target="child"
rel="noopener noreferrer nofollow" class="deploy-link label-truncate"
class="deploy-link js-deploy-meta"
> >
{{ deployment.name }} <a
</a> :href="deployment.url"
target="_blank"
rel="noopener noreferrer nofollow"
class="js-deploy-meta"
>
{{ deployment.name }}
</a>
</tooltip-on-truncate>
</template> </template>
<span <span
v-tooltip v-tooltip
......
...@@ -237,7 +237,10 @@ ...@@ -237,7 +237,10 @@
font-weight: normal; font-weight: normal;
overflow: hidden; overflow: hidden;
word-break: break-all; word-break: break-all;
}
.deploy-link,
.label-branch {
&.label-truncate { &.label-truncate {
// NOTE: This selector targets its children because some of the HTML comes from // NOTE: This selector targets its children because some of the HTML comes from
// 'source_branch_link'. Once this external HTML is no longer used, we could // 'source_branch_link'. Once this external HTML is no longer used, we could
......
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