Commit 2e565228 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'update-compliance-dashboard-to-use-new-gitlab-ui-classes' into 'master'

Follow-up: Updated components to use new GitLab UI classes

See merge request gitlab-org/gitlab!37188
parents 75cf956c 44c2f57b
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
:collapsed="true" :collapsed="true"
:max-visible="$options.PRESENTABLE_APPROVERS_LIMIT" :max-visible="$options.PRESENTABLE_APPROVERS_LIMIT"
:avatar-size="24" :avatar-size="24"
class="gl-display-inline-flex d-lg-none gl-ml-3" class="gl-display-inline-flex gl-display-lg-none! gl-ml-3"
badge-tooltip-prop="name" badge-tooltip-prop="name"
> >
<template #avatar="{ avatar }"> <template #avatar="{ avatar }">
...@@ -89,21 +89,21 @@ export default { ...@@ -89,21 +89,21 @@ export default {
:href="approver.web_url" :href="approver.web_url"
:data-user-id="approver.id" :data-user-id="approver.id"
:data-name="approver.name" :data-name="approver.name"
class="gl-display-none d-lg-inline-flex gl-align-items-center gl-justify-content-end gl-ml-3 gl-text-gray-900 author-link js-user-link" class="gl-display-none gl-display-lg-inline-flex! gl-align-items-center gl-justify-content-end gl-ml-3 gl-text-gray-900 author-link js-user-link"
> >
<gl-avatar <gl-avatar
:src="approver.avatar_url" :src="approver.avatar_url"
:entity-id="approver.id" :entity-id="approver.id"
:entity-name="approver.name" :entity-name="approver.name"
:size="16" :size="16"
class="mr-1" class="gl-mr-2"
/> />
<span>{{ approver.name }}</span> <span>{{ approver.name }}</span>
</gl-avatar-link> </gl-avatar-link>
<span <span
v-if="isApproversOverLimit" v-if="isApproversOverLimit"
v-gl-tooltip.top="approversOverLimitString" v-gl-tooltip.top="approversOverLimitString"
class="gl-display-none d-lg-inline-block avatar-counter gl-ml-3 gl-px-2 gl-flex-shrink-0 flex-grow-0" class="gl-display-none gl-display-lg-inline-block! avatar-counter gl-ml-3 gl-px-2 gl-flex-shrink-0 gl-flex-grow-0"
>+ {{ amountOfApproversOverLimit }}</span >+ {{ amountOfApproversOverLimit }}</span
> >
</div> </div>
......
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
<template> <template>
<div> <div>
<div class="dashboard-grid"> <div class="dashboard-grid gl-display-grid gl-grid-tpl-rows-auto">
<grid-column-heading :heading="$options.strings.mergeRequestLabel" /> <grid-column-heading :heading="$options.strings.mergeRequestLabel" />
<grid-column-heading :heading="$options.strings.approvalStatusLabel" class="gl-text-center" /> <grid-column-heading :heading="$options.strings.approvalStatusLabel" class="gl-text-center" />
<grid-column-heading :heading="$options.strings.pipelineStatusLabel" class="gl-text-center" /> <grid-column-heading :heading="$options.strings.pipelineStatusLabel" class="gl-text-center" />
......
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,7 @@ export default {
<template> <template>
<div <div
class="grid-merge-request gl-border-b-solid gl-border-b-1 gl-border-b-gray-100 gl-p-5" class="gl-grid-col-start-1 gl-border-b-solid gl-border-b-1 gl-border-b-gray-100 gl-p-5"
data-testid="merge-request" data-testid="merge-request"
> >
<a :href="mergeRequest.path" class="gl-display-block gl-text-gray-900 gl-font-weight-bold"> <a :href="mergeRequest.path" class="gl-display-block gl-text-gray-900 gl-font-weight-bold">
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
:entity-id="mergeRequest.author.id" :entity-id="mergeRequest.author.id"
:entity-name="mergeRequest.author.name" :entity-name="mergeRequest.author.name"
:size="16" :size="16"
class="mr-1" class="gl-mr-2"
/> />
<span>{{ mergeRequest.author.name }}</span> <span>{{ mergeRequest.author.name }}</span>
</gl-avatar-link> </gl-avatar-link>
......
...@@ -3,12 +3,6 @@ ...@@ -3,12 +3,6 @@
min-width: 550px; min-width: 550px;
.dashboard-grid { .dashboard-grid {
display: grid;
grid-template-columns: 1fr auto auto auto; grid-template-columns: 1fr auto auto auto;
grid-template-rows: auto;
}
.grid-merge-request {
grid-column-start: 1;
} }
} }
...@@ -17,13 +17,13 @@ exports[`MergeRequest component when there are approvers matches snapshot 1`] = ...@@ -17,13 +17,13 @@ exports[`MergeRequest component when there are approvers matches snapshot 1`] =
avatars="[object Object]" avatars="[object Object]"
avatarsize="24" avatarsize="24"
badgetooltipprop="name" badgetooltipprop="name"
class="gl-display-inline-flex d-lg-none gl-ml-3" class="gl-display-inline-flex gl-display-lg-none! gl-ml-3"
collapsed="true" collapsed="true"
maxvisible="2" maxvisible="2"
/> />
<gl-link-stub <gl-link-stub
class="gl-avatar-link gl-display-none d-lg-inline-flex gl-align-items-center gl-justify-content-end gl-ml-3 gl-text-gray-900 author-link js-user-link" class="gl-avatar-link gl-display-none gl-display-lg-inline-flex! gl-align-items-center gl-justify-content-end gl-ml-3 gl-text-gray-900 author-link js-user-link"
data-name="User 0" data-name="User 0"
data-user-id="0" data-user-id="0"
href="http://localhost:3000/user-0" href="http://localhost:3000/user-0"
...@@ -31,7 +31,7 @@ exports[`MergeRequest component when there are approvers matches snapshot 1`] = ...@@ -31,7 +31,7 @@ exports[`MergeRequest component when there are approvers matches snapshot 1`] =
> >
<gl-avatar-stub <gl-avatar-stub
alt="avatar" alt="avatar"
class="mr-1" class="gl-mr-2"
entityid="0" entityid="0"
entityname="User 0" entityname="User 0"
shape="circle" shape="circle"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
exports[`MergeRequestsGrid component when intialized matches the snapshot 1`] = ` exports[`MergeRequestsGrid component when intialized matches the snapshot 1`] = `
<div> <div>
<div <div
class="dashboard-grid" class="dashboard-grid gl-display-grid gl-grid-tpl-rows-auto"
> >
<grid-column-heading-stub <grid-column-heading-stub
heading="Merge Request" heading="Merge Request"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
exports[`MergeRequest component when there is a merge request matches the snapshot 1`] = ` exports[`MergeRequest component when there is a merge request matches the snapshot 1`] = `
<div <div
class="grid-merge-request gl-border-b-solid gl-border-b-1 gl-border-b-gray-100 gl-p-5" class="gl-grid-col-start-1 gl-border-b-solid gl-border-b-1 gl-border-b-gray-100 gl-p-5"
data-testid="merge-request" data-testid="merge-request"
> >
<a <a
...@@ -35,7 +35,7 @@ exports[`MergeRequest component when there is a merge request matches the snapsh ...@@ -35,7 +35,7 @@ exports[`MergeRequest component when there is a merge request matches the snapsh
> >
<gl-avatar-stub <gl-avatar-stub
alt="avatar" alt="avatar"
class="mr-1" class="gl-mr-2"
entityid="1" entityid="1"
entityname="User 1" entityname="User 1"
shape="circle" shape="circle"
......
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