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
0e6ddab0
Commit
0e6ddab0
authored
Nov 02, 2021
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Nov 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract and document `.u-wrap-reverse` class
parent
ed2f95a5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
AnnotationHeader.js
src/sidebar/components/Annotation/AnnotationHeader.js
+2
-8
util.scss
src/styles/util.scss
+6
-0
No files found.
src/sidebar/components/Annotation/AnnotationHeader.js
View file @
0e6ddab0
...
@@ -115,10 +115,7 @@ function AnnotationHeader({
...
@@ -115,10 +115,7 @@ function AnnotationHeader({
return
(
return
(
<
header
>
<
header
>
<
div
<
div
className
=
"hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2 u-wrap-reverse"
>
className
=
"hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2"
style
=
"flex-wrap:wrap-reverse"
>
{
annotationIsPrivate
&&
!
isEditing
&&
(
{
annotationIsPrivate
&&
!
isEditing
&&
(
<
Icon
<
Icon
classes
=
"u-icon--xsmall"
classes
=
"u-icon--xsmall"
...
@@ -149,10 +146,7 @@ function AnnotationHeader({
...
@@ -149,10 +146,7 @@ function AnnotationHeader({
<
/div
>
<
/div
>
{
showExtendedInfo
&&
(
{
showExtendedInfo
&&
(
<
div
<
div
className
=
"hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2 u-wrap-reverse"
>
className
=
"hyp-u-layout-row--align-baseline hyp-u-horizontal-spacing--2"
style
=
"flex-wrap:wrap-reverse"
>
<
AnnotationShareInfo
annotation
=
{
annotation
}
/
>
<
AnnotationShareInfo
annotation
=
{
annotation
}
/
>
{
!
isEditing
&&
isHighlight
(
annotation
)
&&
(
{
!
isEditing
&&
isHighlight
(
annotation
)
&&
(
<
Icon
<
Icon
...
...
src/styles/util.scss
View file @
0e6ddab0
...
@@ -79,6 +79,12 @@
...
@@ -79,6 +79,12 @@
text-align
:
center
;
text-align
:
center
;
}
}
// A style to make a flex row wrap from bottom to top instead of (default)
// top to bottom
.u-wrap-reverse
{
flex-wrap
:
wrap-reverse
;
}
// TODO: This is a temporary utility class to allow elements in the sidebar
// TODO: This is a temporary utility class to allow elements in the sidebar
// (e.g. panels, thread cards, etc.)
// (e.g. panels, thread cards, etc.)
// to apply margins such that they are evenly spaced. In the future, the
// to apply margins such that they are evenly spaced. In the future, the
...
...
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