Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1a50806d
Commit
1a50806d
authored
Jan 22, 2021
by
Yogi
Committed by
Paul Slaughter
Jan 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix alignment of chevron-down icon in toggle replies
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51872
parent
62f8dab1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
27 deletions
+18
-27
app/assets/javascripts/notes/components/toggle_replies_widget.vue
...ts/javascripts/notes/components/toggle_replies_widget.vue
+13
-8
app/assets/stylesheets/pages/notes.scss
app/assets/stylesheets/pages/notes.scss
+0
-19
changelogs/unreleased/yo-fix-toggle-collapse-replies.yml
changelogs/unreleased/yo-fix-toggle-collapse-replies.yml
+5
-0
No files found.
app/assets/javascripts/notes/components/toggle_replies_widget.vue
View file @
1a50806d
...
...
@@ -39,13 +39,17 @@ export default {
this
.
$emit
(
'
toggle
'
);
},
},
ICON_CLASS
:
'
gl-mr-3 gl-cursor-pointer
'
,
};
</
script
>
<
template
>
<li
:class=
"className"
class=
"replies-toggle js-toggle-replies"
>
<li
:class=
"className"
class=
"replies-toggle js-toggle-replies gl-display-flex! gl-align-items-center gl-flex-wrap"
>
<template
v-if=
"collapsed"
>
<gl-icon
name=
"chevron-right"
@
click.native=
"toggle"
/>
<gl-icon
:class=
"$options.ICON_CLASS"
name=
"chevron-right"
@
click.native=
"toggle"
/>
<div>
<user-avatar-link
v-for=
"author in uniqueAuthors"
...
...
@@ -59,7 +63,7 @@ export default {
/>
</div>
<gl-button
class=
"js-replies-text"
class=
"js-replies-text
gl-mr-2
"
category=
"tertiary"
variant=
"link"
data-qa-selector=
"expand_replies_button"
...
...
@@ -68,18 +72,19 @@ export default {
{{
replies
.
length
}}
{{
n__
(
'
reply
'
,
'
replies
'
,
replies
.
length
)
}}
</gl-button>
{{
__
(
'
Last reply by
'
)
}}
<a
:href=
"lastReply.author.path"
class=
"btn btn-link author-link"
>
<a
:href=
"lastReply.author.path"
class=
"btn btn-link author-link
gl-mx-2
"
>
{{
lastReply
.
author
.
name
}}
</a>
<time-ago-tooltip
:time=
"lastReply.created_at"
tooltip-placement=
"bottom"
/>
</
template
>
<
span
<
div
v-else
class=
"collapse-replies-btn js-collapse-replies"
class=
"collapse-replies-btn js-collapse-replies
gl-display-flex align-items-center
"
data-qa-selector=
"collapse_replies_button"
@
click=
"toggle"
>
<gl-icon
name=
"chevron-down"
/>
{{ s__('Notes|Collapse replies') }}
</span>
<gl-icon
:class=
"$options.ICON_CLASS"
name=
"chevron-down"
/>
<span
class=
"gl-cursor-pointer"
>
{{ s__('Notes|Collapse replies') }}
</span>
</div>
</li>
</template>
app/assets/stylesheets/pages/notes.scss
View file @
1a50806d
...
...
@@ -91,29 +91,10 @@ $note-form-margin-left: 72px;
color
:
$blue-600
;
}
&
.expanded
{
span
{
cursor
:
pointer
;
}
svg
{
position
:
relative
;
top
:
3px
;
}
}
&
.collapsed
{
color
:
$gl-text-color-secondary
;
border-radius
:
0
0
$border-radius-default
$border-radius-default
;
svg
{
float
:
left
;
position
:
relative
;
top
:
$gl-padding-4
;
margin-right
:
$gl-padding-8
;
cursor
:
pointer
;
}
img
{
margin
:
-2px
4px
0
0
;
}
...
...
changelogs/unreleased/yo-fix-toggle-collapse-replies.yml
0 → 100644
View file @
1a50806d
---
title
:
Fix alignment of chevron-down icon in toggle replies
merge_request
:
51872
author
:
Yogi (@yo)
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment