Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador Video
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador Video
Commits
05ac2f49
Commit
05ac2f49
authored
Jul 2, 2020
by
Chris Beer
Browse files
Options
Downloads
Patches
Plain Diff
Move all chips to the upper right hand corner in gallery view
parent
779802fa
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/GalleryViewThumbnail.js
+30
-28
30 additions, 28 deletions
src/components/GalleryViewThumbnail.js
src/containers/GalleryViewThumbnail.js
+8
-8
8 additions, 8 deletions
src/containers/GalleryViewThumbnail.js
with
38 additions
and
36 deletions
src/components/GalleryViewThumbnail.js
+
30
−
28
View file @
05ac2f49
...
...
@@ -133,34 +133,36 @@ export class GalleryViewThumbnail extends Component {
maxWidth
:
`
${
Math
.
ceil
(
config
.
height
*
miradorCanvas
.
aspectRatio
)}
px`
,
}}
>
{
annotationsCount
>
0
&&
(
<
div
className
=
{
classes
.
chips
}
>
{
searchAnnotationsCount
>
0
&&
(
<
Chip
avatar
=
{(
<
Avatar
className
=
{
classes
.
avatar
}
classes
=
{{
circle
:
classes
.
avatarIcon
}}
>
<
AnnotationIcon
className
=
{
classes
.
annotationIcon
}
/
>
<
SearchIcon
fontSize
=
"
small
"
/>
<
/Avatar
>
)}
label
=
{
annotationsCount
}
className
=
{
classNames
(
classes
.
annotationsChip
,
)
}
label
=
{
searchAnnotationsCount
}
className
=
{
classNames
(
classes
.
searchChip
)}
size
=
"
small
"
/>
)}
{
searchA
nnotationsCount
>
0
&&
(
{
a
nnotationsCount
>
0
&&
(
<
Chip
avatar
=
{(
<
Avatar
className
=
{
classes
.
avatar
}
classes
=
{{
circle
:
classes
.
avatarIcon
}}
>
<
SearchIcon
fontSize
=
"
small
"
/>
<
AnnotationIcon
className
=
{
classes
.
annotationIcon
}
/
>
<
/Avatar
>
)}
label
=
{
searchAnnotationsCount
}
className
=
{
classNames
(
classes
.
searchChip
)}
label
=
{
annotationsCount
}
className
=
{
classNames
(
classes
.
annotationsChip
,
)
}
size
=
"
small
"
/>
)}
<
/div
>
<
/IIIFThumbnail
>
<
/div
>
<
/IntersectionObserver
>
...
...
This diff is collapsed.
Click to expand it.
src/containers/GalleryViewThumbnail.js
+
8
−
8
View file @
05ac2f49
...
...
@@ -23,14 +23,17 @@ const styles = theme => ({
},
annotationsChip
:
{
...
theme
.
typography
.
caption
,
left
:
'
50%
'
,
position
:
'
absolute
'
,
top
:
10
,
transform
:
'
translate(-50%, 0)
'
,
},
avatar
:
{
backgroundColor
:
'
transparent
'
,
},
chips
:
{
opacity
:
0.875
,
position
:
'
absolute
'
,
right
:
0
,
textAlign
:
'
right
'
,
top
:
0
,
},
galleryViewItem
:
{
'
&$hasAnnotations
'
:
{
border
:
`2px solid
${
theme
.
palette
.
action
.
selected
}
`
,
...
...
@@ -61,10 +64,7 @@ const styles = theme => ({
'
&$selected $avatar
'
:
{
backgroundColor
:
theme
.
palette
.
highlights
.
primary
,
},
left
:
'
50%
'
,
position
:
'
absolute
'
,
top
:
80
,
transform
:
'
translate(-50%, 0)
'
,
marginTop
:
2
,
},
selected
:
{},
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment