Commit a017fe6e authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Merge branch '55206-discussion-text-alignment' into 'master'

Correctly align resolved discussion text

Closes #55206

See merge request gitlab-org/gitlab-ce!25001
parents d3882f4c a14c9be1
...@@ -363,30 +363,32 @@ Please check your network connection and try again.`; ...@@ -363,30 +363,32 @@ Please check your network connection and try again.`;
:img-size="40" :img-size="40"
/> />
</div> </div>
<note-header <div class="timeline-content">
:author="author" <note-header
:created-at="initialDiscussion.created_at" :author="author"
:note-id="initialDiscussion.id" :created-at="initialDiscussion.created_at"
:include-toggle="true" :note-id="initialDiscussion.id"
:expanded="discussion.expanded" :include-toggle="true"
@toggleHandler="toggleDiscussionHandler" :expanded="discussion.expanded"
> @toggleHandler="toggleDiscussionHandler"
<span v-html="actionText"></span> >
</note-header> <span v-html="actionText"></span>
<note-edited-text </note-header>
v-if="discussion.resolved" <note-edited-text
:edited-at="discussion.resolved_at" v-if="discussion.resolved"
:edited-by="discussion.resolved_by" :edited-at="discussion.resolved_at"
:action-text="resolvedText" :edited-by="discussion.resolved_by"
class-name="discussion-headline-light js-discussion-headline" :action-text="resolvedText"
/> class-name="discussion-headline-light js-discussion-headline"
<note-edited-text />
v-else-if="lastUpdatedAt" <note-edited-text
:edited-at="lastUpdatedAt" v-else-if="lastUpdatedAt"
:edited-by="lastUpdatedBy" :edited-at="lastUpdatedAt"
action-text="Last updated" :edited-by="lastUpdatedBy"
class-name="discussion-headline-light js-discussion-headline" action-text="Last updated"
/> class-name="discussion-headline-light js-discussion-headline"
/>
</div>
</div> </div>
<div v-if="shouldShowDiscussions" class="discussion-body"> <div v-if="shouldShowDiscussions" class="discussion-body">
<component <component
......
...@@ -550,6 +550,11 @@ $note-form-margin-left: 72px; ...@@ -550,6 +550,11 @@ $note-form-margin-left: 72px;
.note-header-info { .note-header-info {
padding-bottom: 0; padding-bottom: 0;
} }
.timeline-content {
overflow-x: auto;
overflow-y: hidden;
}
} }
.unresolved { .unresolved {
...@@ -597,7 +602,6 @@ $note-form-margin-left: 72px; ...@@ -597,7 +602,6 @@ $note-form-margin-left: 72px;
.note-headline-meta { .note-headline-meta {
display: inline-block; display: inline-block;
white-space: nowrap;
.system-note-message { .system-note-message {
white-space: normal; white-space: normal;
...@@ -607,6 +611,10 @@ $note-form-margin-left: 72px; ...@@ -607,6 +611,10 @@ $note-form-margin-left: 72px;
color: $gl-text-color-disabled; color: $gl-text-color-disabled;
} }
.note-timestamp {
white-space: nowrap;
}
a:hover { a:hover {
text-decoration: underline; text-decoration: underline;
} }
......
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