Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
e334c3f3
Commit
e334c3f3
authored
Jan 03, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace collapse/expand icons with equivalent SVGs
parent
9e0c19f1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
caret-right.svg
src/images/icons/caret-right.svg
+6
-0
svg-icon.js
src/sidebar/components/svg-icon.js
+1
-0
annotation-thread.html
src/sidebar/templates/annotation-thread.html
+2
-2
annotation-thread.scss
src/styles/sidebar/components/annotation-thread.scss
+1
-0
No files found.
src/images/icons/caret-right.svg
0 → 100644
View file @
e334c3f3
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
>
<g
transform=
"matrix(6.12323e-17,1,-1,6.12323e-17,15.9996,0.000432345)"
>
<path
fill=
"currentColor"
d=
"M7.456,4.212C7.762,3.931 8.238,3.931 8.544,4.212L14.774,10.079C15.075,10.362 15.075,10.821 14.774,11.104L14.048,11.788C13.742,12.069 13.267,12.069 12.961,11.789L8,7.139L3.039,11.789C2.733,12.069 2.258,12.069 1.952,11.788L1.225,11.104C1.081,10.972 0.999,10.786 0.999,10.592C0.999,10.397 1.081,10.211 1.225,10.079L7.455,4.212L7.456,4.212Z"
/>
</g>
</svg>
src/sidebar/components/svg-icon.js
View file @
e334c3f3
...
@@ -10,6 +10,7 @@ const icons = {
...
@@ -10,6 +10,7 @@ const icons = {
'arrow-left'
:
require
(
'../../images/icons/arrow-left.svg'
),
'arrow-left'
:
require
(
'../../images/icons/arrow-left.svg'
),
'arrow-right'
:
require
(
'../../images/icons/arrow-right.svg'
),
'arrow-right'
:
require
(
'../../images/icons/arrow-right.svg'
),
cancel
:
require
(
'../../images/icons/cancel.svg'
),
cancel
:
require
(
'../../images/icons/cancel.svg'
),
'caret-right'
:
require
(
'../../images/icons/caret-right.svg'
),
'cc-std'
:
require
(
'../../images/icons/cc-std.svg'
),
'cc-std'
:
require
(
'../../images/icons/cc-std.svg'
),
'cc-zero'
:
require
(
'../../images/icons/cc-zero.svg'
),
'cc-zero'
:
require
(
'../../images/icons/cc-zero.svg'
),
'collapse-menu'
:
require
(
'../../images/icons/collapse-menu.svg'
),
'collapse-menu'
:
require
(
'../../images/icons/collapse-menu.svg'
),
...
...
src/sidebar/templates/annotation-thread.html
View file @
e334c3f3
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
ng-class=
"vm.threadToggleClasses()"
ng-class=
"vm.threadToggleClasses()"
title=
"{{vm.thread.collapsed && 'Expand' || 'Collapse'}}"
title=
"{{vm.thread.collapsed && 'Expand' || 'Collapse'}}"
ng-click=
"vm.toggleCollapsed()"
>
ng-click=
"vm.toggleCollapsed()"
>
<s
pan
ng-class=
"{'h-icon-arrow-right': vm.thread.collapsed,
<s
vg-icon
name=
"'caret-right'"
ng-if=
"vm.thread.collapsed"
></svg-icon>
'h-icon-arrow-drop-down': !vm.thread.collapsed}"
></spa
n>
<svg-icon
name=
"'expand-menu'"
ng-if=
"!vm.thread.collapsed"
></svg-ico
n>
</a>
</a>
<div
class=
"annotation-thread__thread-line"
></div>
<div
class=
"annotation-thread__thread-line"
></div>
</div>
</div>
...
...
src/styles/sidebar/components/annotation-thread.scss
View file @
e334c3f3
...
@@ -61,6 +61,7 @@ li:first-child .annotation-thread--top-reply {
...
@@ -61,6 +61,7 @@ li:first-child .annotation-thread--top-reply {
color
:
var
.
$grey-4
;
color
:
var
.
$grey-4
;
display
:
block
;
display
:
block
;
text-align
:
center
;
text-align
:
center
;
margin-left
:
3px
;
font-size
:
15px
;
font-size
:
15px
;
line-height
:
22px
;
line-height
:
22px
;
...
...
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