Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador annotations
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 annotations
Commits
0cd17e32
Commit
0cd17e32
authored
1 year ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Improve usability of HMS Input button
parent
ad5f8956
Branches
Branches containing commit
No related tags found
1 merge request
!7
Change on the slide bar's UI from pluggin annotation
Pipeline
#1648
failed
1 year ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/AnnotationCreation.js
+4
-2
4 additions, 2 deletions
src/AnnotationCreation.js
src/HMSInput.js
+9
-3
9 additions, 3 deletions
src/HMSInput.js
with
13 additions
and
5 deletions
src/AnnotationCreation.js
+
4
−
2
View file @
0cd17e32
...
...
@@ -136,7 +136,7 @@ class AnnotationCreation extends Component {
textEditorStateBustingKey
:
0
,
// eslint-disable-next-line sort-keys,max-len
// TO DO : The state must be updated with the video's timing information when the component is mounted
valueTime
:
[
0
,
1
3
],
valueTime
:
[
0
,
1
],
xywh
:
null
,
...
annoState
,
valuetextTime
:
''
,
...
...
@@ -371,6 +371,8 @@ class AnnotationCreation extends Component {
const
mediaIsVideo
=
typeof
VideosReferences
.
get
(
windowId
)
!==
'
undefined
'
;
if
(
mediaIsVideo
)
{
mediaVideo
=
VideosReferences
.
get
(
windowId
);
valueTime
[
0
]
=
tstart
;
valueTime
[
1
]
=
tend
;
}
return
(
...
...
@@ -422,7 +424,7 @@ class AnnotationCreation extends Component {
onChange
=
{
this
.
handleChangeTime
}
valueLabelDisplay
=
"
auto
"
aria
-
labelledby
=
"
range-slider
"
getAriaValueText
=
{
this
.
valuetextTime
}
getAriaValueText
=
{
secondsToHMS
}
max
=
{
mediaVideo
?
mediaVideo
.
video
.
duration
:
null
}
color
=
"
secondary
"
classes
=
{{
...
...
This diff is collapsed.
Click to expand it.
src/HMSInput.js
+
9
−
3
View file @
0cd17e32
...
...
@@ -59,8 +59,11 @@ class HMSInput extends Component {
onChange
=
{
this
.
someChange
}
inputProps
=
{{
style
:
{
textAlign
:
'
center
'
}
}}
/
>
<
span
className
=
{
classes
.
hmsLabel
}
>
h
<
/span
>
<
Input
className
=
{
classes
.
input
}
type
=
"
number
"
min
=
"
0
"
max
=
"
59
"
name
=
"
minutes
"
value
=
{
minutes
}
onChange
=
{
this
.
someChange
}
inputProps
=
{{
style
:
{
textAlign
:
'
center
'
}
}}
/
>
<
span
className
=
{
classes
.
hmsLabel
}
>
m
<
/span
>
<
Input
className
=
{
classes
.
input
}
type
=
"
number
"
min
=
"
0
"
max
=
"
59
"
name
=
"
seconds
"
value
=
{
seconds
}
onChange
=
{
this
.
someChange
}
inputProps
=
{{
style
:
{
textAlign
:
'
center
'
}
}}
/
>
<
span
className
=
{
classes
.
hmsLabel
}
>
s
<
/span
>
<
/div
>
<
/div
>
);
...
...
@@ -79,6 +82,9 @@ const styles = (theme) => ({
flexDirection
:
'
column
'
,
justifyContent
:
'
center
'
,
},
hmsLabel
:
{
color
:
'
grey
'
,
},
// eslint-disable-next-line sort-keys
input
:
{
height
:
'
fit-content
'
,
...
...
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