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
4ddcbb5f
Commit
4ddcbb5f
authored
Sep 16, 2020
by
Eduardo Sanz García
Committed by
Eduardo
Sep 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#fix: quote is highlighted when hover main text
parent
94e21849
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
annotation-quote.js
src/sidebar/components/annotation-quote.js
+3
-2
annotation.scss
src/styles/sidebar/components/annotation.scss
+0
-6
No files found.
src/sidebar/components/annotation-quote.js
View file @
4ddcbb5f
...
...
@@ -40,7 +40,6 @@ function AnnotationQuote({ annotation, isFocused, settings = {} }) {
<
div
className
=
{
classnames
(
'annotation-quote'
,
{
'is-orphan'
:
isOrphan
(
annotation
),
'is-focused'
:
isFocused
,
})}
>
<
Excerpt
...
...
@@ -49,7 +48,9 @@ function AnnotationQuote({ annotation, isFocused, settings = {} }) {
overflowThreshold
=
{
20
}
>
<
blockquote
className
=
"annotation-quote__quote"
className
=
{
classnames
(
'annotation-quote__quote'
,
{
'is-focused'
:
isFocused
,
})}
dir
=
"auto"
lang
=
{
documentLanguage
}
style
=
{
applyTheme
([
'selectionFontFamily'
],
settings
)}
...
...
src/styles/sidebar/components/annotation.scss
View file @
4ddcbb5f
...
...
@@ -2,12 +2,6 @@
@use
"../../mixins/layout"
;
@use
"../../variables"
as
var
;
// FIXME These hover-related rules should live elsewhere
// Highlight quote of annotation whenever its thread is hovered
.thread-list__card
:hover
.annotation-quote__quote
{
border-left
:
var
.
$color-quote
3px
solid
;
}
// When hovering a top-level annotation, show the footer in a hovered state.
// When hovering a reply (at any level), show the reply's own footer in
// a hovered state and also the footer of the top-level annotation.
...
...
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