Skip to content
代码片段 群组 项目
未验证 提交 d9e01a27 编辑于 作者: Alexander Turinske's avatar Alexander Turinske 提交者: GitLab
浏览文件

Merge branch 'psi-wi-side' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -565,6 +565,7 @@ export default { ...@@ -565,6 +565,7 @@ export default {
> >
<section> <section>
<work-item-attributes-wrapper <work-item-attributes-wrapper
v-if="!workItemsMvc2Enabled"
:class="{ 'gl-md-display-none!': workItemsMvc2Enabled }" :class="{ 'gl-md-display-none!': workItemsMvc2Enabled }"
class="gl-border-b" class="gl-border-b"
:full-path="fullPath" :full-path="fullPath"
...@@ -594,57 +595,11 @@ export default { ...@@ -594,57 +595,11 @@ export default {
@error="updateError = $event" @error="updateError = $event"
@emoji-updated="$emit('work-item-emoji-updated', $event)" @emoji-updated="$emit('work-item-emoji-updated', $event)"
/> />
<work-item-tree
v-if="showWorkItemTree"
:full-path="fullPath"
:work-item-type="workItemType"
:parent-work-item-type="workItem.workItemType.name"
:work-item-id="workItem.id"
:work-item-iid="workItemIid"
:children="children"
:can-update="canUpdate"
:confidential="workItem.confidential"
@show-modal="openInModal"
@addChild="$emit('addChild')"
/>
<work-item-relationships
v-if="showWorkItemLinkedItems"
:work-item-id="workItem.id"
:work-item-iid="workItemIid"
:work-item-full-path="fullPath"
:work-item-type="workItem.workItemType.name"
@showModal="openInModal"
/>
<work-item-notes
v-if="workItemNotes"
:full-path="fullPath"
:work-item-id="workItem.id"
:work-item-iid="workItem.iid"
:work-item-type="workItemType"
:is-modal="isModal"
:assignees="workItemAssignees && workItemAssignees.assignees.nodes"
:can-set-work-item-metadata="canAssignUnassignUser"
:report-abuse-path="reportAbusePath"
:is-discussion-locked="isDiscussionLocked"
:is-work-item-confidential="workItem.confidential"
class="gl-pt-5"
:use-h2="!isModal"
@error="updateError = $event"
@has-notes="updateHasNotes"
@openReportAbuse="openReportAbuseDrawer"
/>
<gl-empty-state
v-if="error"
:title="$options.i18n.fetchErrorTitle"
:description="error"
:svg-path="noAccessSvgPath"
:svg-height="null"
/>
</section> </section>
<aside <aside
v-if="workItemsMvc2Enabled" v-if="workItemsMvc2Enabled"
data-testid="work-item-overview-right-sidebar" data-testid="work-item-overview-right-sidebar"
class="work-item-overview-right-sidebar gl-display-none gl-md-display-block" class="work-item-overview-right-sidebar"
:class="{ 'is-modal': isModal }" :class="{ 'is-modal': isModal }"
> >
<work-item-attributes-wrapper <work-item-attributes-wrapper
...@@ -653,6 +608,53 @@ export default { ...@@ -653,6 +608,53 @@ export default {
@error="updateError = $event" @error="updateError = $event"
/> />
</aside> </aside>
<work-item-tree
v-if="showWorkItemTree"
:full-path="fullPath"
:work-item-type="workItemType"
:parent-work-item-type="workItem.workItemType.name"
:work-item-id="workItem.id"
:work-item-iid="workItemIid"
:children="children"
:can-update="canUpdate"
:confidential="workItem.confidential"
@show-modal="openInModal"
@addChild="$emit('addChild')"
/>
<work-item-relationships
v-if="showWorkItemLinkedItems"
:work-item-id="workItem.id"
:work-item-iid="workItemIid"
:work-item-full-path="fullPath"
:work-item-type="workItem.workItemType.name"
@showModal="openInModal"
/>
<work-item-notes
v-if="workItemNotes"
:full-path="fullPath"
:work-item-id="workItem.id"
:work-item-iid="workItem.iid"
:work-item-type="workItemType"
:is-modal="isModal"
:assignees="workItemAssignees && workItemAssignees.assignees.nodes"
:can-set-work-item-metadata="canAssignUnassignUser"
:report-abuse-path="reportAbusePath"
:is-discussion-locked="isDiscussionLocked"
:is-work-item-confidential="workItem.confidential"
class="gl-pt-5"
:use-h2="!isModal"
@error="updateError = $event"
@has-notes="updateHasNotes"
@openReportAbuse="openReportAbuseDrawer"
/>
<gl-empty-state
v-if="error"
:title="$options.i18n.fetchErrorTitle"
:description="error"
:svg-path="noAccessSvgPath"
:svg-height="null"
/>
</div> </div>
</template> </template>
<work-item-detail-modal <work-item-detail-modal
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
@import 'system_note_styles'; @import 'system_note_styles';
$work-item-field-inset-shadow: inset 0 0 0 $gl-border-size-1 var(--gray-200, $gray-200) !important; $work-item-field-inset-shadow: inset 0 0 0 $gl-border-size-1 var(--gray-200, $gray-200) !important;
$work-item-overview-right-sidebar-width: 23rem; $work-item-overview-right-sidebar-width: 20rem;
$work-item-sticky-header-height: 52px; $work-item-sticky-header-height: 52px;
$work-item-overview-gap-width: 2rem; $work-item-overview-gap-width: 2rem;
...@@ -146,13 +146,23 @@ $work-item-overview-gap-width: 2rem; ...@@ -146,13 +146,23 @@ $work-item-overview-gap-width: 2rem;
.work-item-overview { .work-item-overview {
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
display: grid; display: grid;
grid-template-columns: 1fr $work-item-overview-right-sidebar-width; // allow the main content area to shrink
gap: $work-item-overview-gap-width; // grid items have "max-width: auto" so without the minmax the content can
// spill outside of the overview container
grid-template-columns: minmax(0, 1fr) $work-item-overview-right-sidebar-width;
column-gap: $work-item-overview-gap-width;
} }
} }
.work-item-overview-right-sidebar { .work-item-overview-right-sidebar {
margin-top: $gl-spacing-scale-5;
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
margin-top: 0;
grid-row-start: 1;
grid-column-start: 2;
grid-row-end: 4;
&.is-modal { &.is-modal {
.work-item-attributes-wrapper { .work-item-attributes-wrapper {
top: 0; top: 0;
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册