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
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
b36d3caa
Commit
b36d3caa
authored
1 year ago
by
Antoine Roy
Browse files
Options
Downloads
Patches
Plain Diff
textAlign center on Time Input
parent
3706d133
Branches
Branches containing commit
No related tags found
1 merge request
!7
Change on the slide bar's UI from pluggin annotation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/HMSInput.js
+3
-5
3 additions, 5 deletions
src/HMSInput.js
with
3 additions
and
5 deletions
src/HMSInput.js
+
3
−
5
View file @
b36d3caa
...
...
@@ -57,9 +57,10 @@ class HMSInput extends Component {
name
=
"
hours
"
value
=
{
hours
}
onChange
=
{
this
.
someChange
}
inputProps
=
{{
style
:
{
textAlign
:
'
center
'
}
}}
/
>
<
Input
className
=
{
classes
.
input
}
type
=
"
number
"
min
=
"
0
"
max
=
"
59
"
name
=
"
minutes
"
value
=
{
minutes
}
onChange
=
{
this
.
someChange
}
/
>
<
Input
className
=
{
classes
.
input
}
type
=
"
number
"
min
=
"
0
"
max
=
"
59
"
name
=
"
seconds
"
value
=
{
seconds
}
onChange
=
{
this
.
someChange
}
/
>
<
Input
className
=
{
classes
.
input
}
type
=
"
number
"
min
=
"
0
"
max
=
"
59
"
name
=
"
minutes
"
value
=
{
minutes
}
onChange
=
{
this
.
someChange
}
inputProps
=
{{
style
:
{
textAlign
:
'
center
'
}
}}
/
>
<
Input
className
=
{
classes
.
input
}
type
=
"
number
"
min
=
"
0
"
max
=
"
59
"
name
=
"
seconds
"
value
=
{
seconds
}
onChange
=
{
this
.
someChange
}
inputProps
=
{{
style
:
{
textAlign
:
'
center
'
}
}}
/
>
<
/div
>
<
/div
>
);
...
...
@@ -71,7 +72,6 @@ const styles = (theme) => ({
root
:
{
alignItems
:
'
center
'
,
display
:
'
flex
'
,
justifyContent
:
'
end
'
,
},
// eslint-disable-next-line sort-keys
flexcol
:
{
...
...
@@ -83,8 +83,6 @@ const styles = (theme) => ({
input
:
{
height
:
'
fit-content
'
,
margin
:
'
2px
'
,
textAlign
:
'
center
'
,
width
:
'
4ch
'
,
// remove arrow from field for Firefox
'
& input[type=number]
'
:
{
'
-moz-appearance
'
:
'
textfield
'
,
...
...
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