Commit 3f2c4621 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '300787-clean-up-block-class-for-jobs-feature' into 'master'

Remove .block class from right sidebar blocks

See merge request gitlab-org/gitlab!55886
parents 0eba4b31 16a047d3
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
}; };
</script> </script>
<template> <template>
<div class="block"> <div>
<div class="title gl-font-weight-bold">{{ s__('Job|Job artifacts') }}</div> <div class="title gl-font-weight-bold">{{ s__('Job|Job artifacts') }}</div>
<p <p
v-if="isExpired || willExpire" v-if="isExpired || willExpire"
......
...@@ -18,20 +18,11 @@ export default { ...@@ -18,20 +18,11 @@ export default {
required: false, required: false,
default: null, default: null,
}, },
isLastBlock: {
type: Boolean,
required: true,
},
}, },
}; };
</script> </script>
<template> <template>
<div <div>
:class="{
'block-last': isLastBlock,
block: !isLastBlock,
}"
>
<span class="font-weight-bold">{{ __('Commit') }}</span> <span class="font-weight-bold">{{ __('Commit') }}</span>
<gl-link :href="commit.commit_path" class="js-commit-sha commit-sha link-commit"> <gl-link :href="commit.commit_path" class="js-commit-sha commit-sha link-commit">
......
...@@ -20,6 +20,7 @@ export default { ...@@ -20,6 +20,7 @@ export default {
i18n: { i18n: {
...JOB_SIDEBAR, ...JOB_SIDEBAR,
}, },
borderTopClass: ['gl-border-t-solid', 'gl-border-t-1', 'gl-border-t-gray-100'],
forwardDeploymentFailureModalId, forwardDeploymentFailureModalId,
components: { components: {
ArtifactsBlock, ArtifactsBlock,
...@@ -72,7 +73,7 @@ export default { ...@@ -72,7 +73,7 @@ export default {
<aside class="right-sidebar build-sidebar" data-offset-top="101" data-spy="affix"> <aside class="right-sidebar build-sidebar" data-offset-top="101" data-spy="affix">
<div class="sidebar-container"> <div class="sidebar-container">
<div class="blocks-container"> <div class="blocks-container">
<div class="block gl-display-flex gl-flex-nowrap gl-align-items-center"> <div class="gl-py-5 gl-display-flex gl-align-items-center">
<tooltip-on-truncate :title="job.name" truncate-target="child" <tooltip-on-truncate :title="job.name" truncate-target="child"
><h4 class="my-0 mr-2 gl-text-truncate"> ><h4 class="my-0 mr-2 gl-text-truncate">
{{ job.name }} {{ job.name }}
...@@ -107,38 +108,59 @@ export default { ...@@ -107,38 +108,59 @@ export default {
/> />
</div> </div>
<div v-if="job.terminal_path || job.new_issue_path" class="block retry-link"> <div
v-if="job.terminal_path || job.new_issue_path"
class="gl-py-5"
:class="$options.borderTopClass"
>
<gl-button <gl-button
v-if="job.new_issue_path" v-if="job.new_issue_path"
:href="job.new_issue_path"
category="secondary" category="secondary"
variant="confirm" variant="confirm"
:href="job.new_issue_path"
class="float-left gl-mr-2"
data-testid="job-new-issue" data-testid="job-new-issue"
>{{ $options.i18n.newIssue }} >
{{ $options.i18n.newIssue }}
</gl-button> </gl-button>
<gl-button <gl-button
v-if="job.terminal_path" v-if="job.terminal_path"
:href="job.terminal_path" :href="job.terminal_path"
class="gl-md-display-block gl-lg-display-block float-left"
target="_blank" target="_blank"
data-testid="terminal-link" data-testid="terminal-link"
> >
{{ $options.i18n.debug }} {{ $options.i18n.debug }}
<gl-icon :size="14" name="external-link" /> <gl-icon name="external-link" />
</gl-button> </gl-button>
</div> </div>
<job-sidebar-details-container />
<artifacts-block v-if="hasArtifact" :artifact="job.artifact" :help-url="artifactHelpUrl" /> <job-sidebar-details-container class="gl-py-5" :class="$options.borderTopClass" />
<trigger-block v-if="hasTriggers" :trigger="job.trigger" />
<artifacts-block
v-if="hasArtifact"
class="gl-py-5"
:class="$options.borderTopClass"
:artifact="job.artifact"
:help-url="artifactHelpUrl"
/>
<trigger-block
v-if="hasTriggers"
class="gl-py-5"
:class="$options.borderTopClass"
:trigger="job.trigger"
/>
<commit-block <commit-block
:commit="commit" :commit="commit"
:is-last-block="hasStages" class="gl-py-5"
:class="$options.borderTopClass"
:merge-request="job.merge_request" :merge-request="job.merge_request"
/> />
<stages-dropdown <stages-dropdown
v-if="job.pipeline" v-if="job.pipeline"
class="gl-py-5"
:class="$options.borderTopClass"
:pipeline="job.pipeline" :pipeline="job.pipeline"
:selected-stage="selectedStage" :selected-stage="selectedStage"
:stages="stages" :stages="stages"
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
</script> </script>
<template> <template>
<div v-if="shouldRenderBlock" class="block"> <div v-if="shouldRenderBlock">
<detail-row v-if="job.duration" :value="duration" title="Duration" /> <detail-row v-if="job.duration" :value="duration" title="Duration" />
<detail-row <detail-row
v-if="job.finished_at" v-if="job.finished_at"
......
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
}; };
</script> </script>
<template> <template>
<div class="block-last dropdown"> <div class="dropdown">
<div class="js-pipeline-info"> <div class="js-pipeline-info">
<ci-icon :status="pipeline.details.status" class="vertical-align-middle" /> <ci-icon :status="pipeline.details.status" class="vertical-align-middle" />
......
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
</script> </script>
<template> <template>
<div class="block"> <div>
<p <p
v-if="trigger.short_token" v-if="trigger.short_token"
:class="{ 'gl-mb-2': hasVariables, 'gl-mb-0': !hasVariables }" :class="{ 'gl-mb-2': hasVariables, 'gl-mb-0': !hasVariables }"
......
...@@ -140,23 +140,6 @@ ...@@ -140,23 +140,6 @@
width: 289px; width: 289px;
} }
.block {
width: 100%;
word-break: break-word;
&:last-child {
border-bottom: 1px solid $border-gray-normal;
}
&.coverage {
padding: 0 16px 11px;
}
}
.block-last {
padding: 16px 0;
}
.trigger-variables-btn-container { .trigger-variables-btn-container {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -198,18 +181,6 @@ ...@@ -198,18 +181,6 @@
margin-left: 2px; margin-left: 2px;
} }
.retry-link {
display: block;
.btn-inverted-secondary {
color: $blue-500;
&:hover {
color: $white;
}
}
}
.stage-item { .stage-item {
cursor: pointer; cursor: pointer;
......
---
title: Adjust debug button icon size in job detail page
merge_request: 55886
author:
type: changed
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