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
9e0c19f1
Commit
9e0c19f1
authored
Jan 03, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update `highlight` icon to use SVG
parent
847ad126
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
annotation-header.js
src/sidebar/components/annotation-header.js
+5
-2
annotation-header.scss
src/styles/sidebar/components/annotation-header.scss
+7
-0
No files found.
src/sidebar/components/annotation-header.js
View file @
9e0c19f1
...
...
@@ -4,6 +4,7 @@ const { createElement } = require('preact');
const
AnnotationDocumentInfo
=
require
(
'./annotation-document-info'
);
const
AnnotationShareInfo
=
require
(
'./annotation-share-info'
);
const
AnnotationUser
=
require
(
'./annotation-user'
);
const
SvgIcon
=
require
(
'./svg-icon'
);
const
Timestamp
=
require
(
'./timestamp'
);
/**
...
...
@@ -62,9 +63,11 @@ function AnnotationHeader({
<
AnnotationShareInfo
annotation
=
{
annotation
}
isPrivate
=
{
isPrivate
}
/
>
{
!
isEditing
&&
isHighlight
&&
(
<
div
className
=
"annotation-header__highlight"
>
<
i
className
=
"h-icon-border-color
"
<
SvgIcon
name
=
"highlight
"
title
=
"This is a highlight. Click 'edit' to add a note or tag."
inline
=
{
true
}
className
=
"annotation-header__highlight-icon"
/>
<
/div
>
)}
...
...
src/styles/sidebar/components/annotation-header.scss
View file @
9e0c19f1
...
...
@@ -37,4 +37,11 @@
&
__highlight
{
margin-right
:
5px
;
}
&
__highlight-icon
{
width
:
12px
;
height
:
12px
;
/* bring down the baseline a little */
margin-bottom
:
-1px
;
}
}
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