Commit 7d3a2cfb authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch...

Merge branch '225656-package-detail-view-update-the-order-of-the-header-metadata-to-improve-readability' into 'master'

Update order of the Header Metadata in Package details

See merge request gitlab-org/gitlab!39585
parents 1a7b8741 ce38cb7d
...@@ -74,8 +74,9 @@ export default { ...@@ -74,8 +74,9 @@ export default {
<span data-testid="package-type" class="gl-font-weight-bold">{{ packageTypeDisplay }}</span> <span data-testid="package-type" class="gl-font-weight-bold">{{ packageTypeDisplay }}</span>
</div> </div>
<div v-if="hasTagsToDisplay" class="gl-display-flex gl-align-items-center gl-mr-5"> <div class="gl-display-flex gl-align-items-center gl-mr-5">
<package-tags :tag-display-limit="1" :tags="packageEntity.tags" /> <gl-icon name="disk" class="gl-text-gray-500 gl-mr-3" />
<span data-testid="package-size" class="gl-font-weight-bold">{{ totalSize }}</span>
</div> </div>
<div v-if="packagePipeline" class="gl-display-flex gl-align-items-center gl-mr-5"> <div v-if="packagePipeline" class="gl-display-flex gl-align-items-center gl-mr-5">
...@@ -103,9 +104,8 @@ export default { ...@@ -103,9 +104,8 @@ export default {
> >
</div> </div>
<div class="gl-display-flex gl-align-items-center gl-mr-5"> <div v-if="hasTagsToDisplay" class="gl-display-flex gl-align-items-center gl-mr-5">
<gl-icon name="disk" class="gl-text-gray-500 gl-mr-3" /> <package-tags :tag-display-limit="2" :tags="packageEntity.tags" hide-label />
<span data-testid="package-size" class="gl-font-weight-bold">{{ totalSize }}</span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -80,6 +80,7 @@ export default { ...@@ -80,6 +80,7 @@ export default {
data-testid="tagBadge" data-testid="tagBadge"
:class="tagBadgeClass(index)" :class="tagBadgeClass(index)"
variant="info" variant="info"
size="sm"
>{{ tag.name }}</gl-badge >{{ tag.name }}</gl-badge
> >
...@@ -89,6 +90,7 @@ export default { ...@@ -89,6 +90,7 @@ export default {
data-testid="moreBadge" data-testid="moreBadge"
variant="muted" variant="muted"
:title="moreTagsTooltip" :title="moreTagsTooltip"
size="sm"
class="gl-display-none d-md-flex gl-ml-2" class="gl-display-none d-md-flex gl-ml-2"
><gl-sprintf :message="__('+%{tags} more')"> ><gl-sprintf :message="__('+%{tags} more')">
<template #tags> <template #tags>
......
---
title: Update order of the Header Metadata in Package details
merge_request: 39585
author:
type: changed
...@@ -56,19 +56,6 @@ exports[`PackageTitle renders with tags 1`] = ` ...@@ -56,19 +56,6 @@ exports[`PackageTitle renders with tags 1`] = `
</span> </span>
</div> </div>
<div
class="gl-display-flex gl-align-items-center gl-mr-5"
>
<package-tags-stub
tagdisplaylimit="1"
tags="[object Object],[object Object],[object Object],[object Object]"
/>
</div>
<!---->
<!---->
<div <div
class="gl-display-flex gl-align-items-center gl-mr-5" class="gl-display-flex gl-align-items-center gl-mr-5"
> >
...@@ -85,6 +72,20 @@ exports[`PackageTitle renders with tags 1`] = ` ...@@ -85,6 +72,20 @@ exports[`PackageTitle renders with tags 1`] = `
300 bytes 300 bytes
</span> </span>
</div> </div>
<!---->
<!---->
<div
class="gl-display-flex gl-align-items-center gl-mr-5"
>
<package-tags-stub
hidelabel="true"
tagdisplaylimit="2"
tags="[object Object],[object Object],[object Object],[object Object]"
/>
</div>
</div> </div>
</div> </div>
`; `;
...@@ -145,12 +146,6 @@ exports[`PackageTitle renders without tags 1`] = ` ...@@ -145,12 +146,6 @@ exports[`PackageTitle renders without tags 1`] = `
</span> </span>
</div> </div>
<!---->
<!---->
<!---->
<div <div
class="gl-display-flex gl-align-items-center gl-mr-5" class="gl-display-flex gl-align-items-center gl-mr-5"
> >
...@@ -167,6 +162,12 @@ exports[`PackageTitle renders without tags 1`] = ` ...@@ -167,6 +162,12 @@ exports[`PackageTitle renders without tags 1`] = `
300 bytes 300 bytes
</span> </span>
</div> </div>
<!---->
<!---->
<!---->
</div> </div>
</div> </div>
`; `;
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