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
fc4745ed
Commit
fc4745ed
authored
6 years ago
by
Chris Beer
Browse files
Options
Downloads
Patches
Plain Diff
Replace radio buttons with icons
parent
656160d3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/WindowThumbnailSettings.js
+23
-3
23 additions, 3 deletions
src/components/WindowThumbnailSettings.js
with
23 additions
and
3 deletions
src/components/WindowThumbnailSettings.js
+
23
−
3
View file @
fc4745ed
...
@@ -3,6 +3,8 @@ import FormControlLabel from '@material-ui/core/FormControlLabel';
...
@@ -3,6 +3,8 @@ import FormControlLabel from '@material-ui/core/FormControlLabel';
import
Radio
from
'
@material-ui/core/Radio
'
;
import
Radio
from
'
@material-ui/core/Radio
'
;
import
RadioGroup
from
'
@material-ui/core/RadioGroup
'
;
import
RadioGroup
from
'
@material-ui/core/RadioGroup
'
;
import
Typography
from
'
@material-ui/core/Typography
'
;
import
Typography
from
'
@material-ui/core/Typography
'
;
import
CancelPresentationIcon
from
'
@material-ui/icons/CancelPresentation
'
;
import
VideoLabelIcon
from
'
@material-ui/icons/VideoLabel
'
;
import
PropTypes
from
'
prop-types
'
;
import
PropTypes
from
'
prop-types
'
;
/**
/**
...
@@ -42,19 +44,19 @@ export default class WindowThumbnailSettings extends Component {
...
@@ -42,19 +44,19 @@ export default class WindowThumbnailSettings extends Component {
<
RadioGroup
aria
-
label
=
"
position
"
name
=
"
position
"
value
=
{
thumbnailNavigationPosition
}
onChange
=
{
this
.
handleChange
}
row
>
<
RadioGroup
aria
-
label
=
"
position
"
name
=
"
position
"
value
=
{
thumbnailNavigationPosition
}
onChange
=
{
this
.
handleChange
}
row
>
<
FormControlLabel
<
FormControlLabel
value
=
"
off
"
value
=
"
off
"
control
=
{
<
Radio
color
=
"
primary
"
/>
}
control
=
{
<
Radio
color
=
"
primary
"
icon
=
{
<
CancelPresentationIcon
/>
}
checkedIcon
=
{
<
CancelPresentationIcon
/>
}
/>
}
label
=
"
Off
"
label
=
"
Off
"
labelPlacement
=
"
bottom
"
labelPlacement
=
"
bottom
"
/>
/>
<
FormControlLabel
<
FormControlLabel
value
=
"
bottom
"
value
=
"
bottom
"
control
=
{
<
Radio
color
=
"
primary
"
/>
}
control
=
{
<
Radio
color
=
"
primary
"
icon
=
{
<
ThumbnailNavigationBottomIcon
/>
}
checkedIcon
=
{
<
ThumbnailNavigationBottomIcon
/>
}
/>
}
label
=
"
Bottom
"
label
=
"
Bottom
"
labelPlacement
=
"
bottom
"
labelPlacement
=
"
bottom
"
/>
/>
<
FormControlLabel
<
FormControlLabel
value
=
"
right
"
value
=
"
right
"
control
=
{
<
Radio
color
=
"
primary
"
/>
}
control
=
{
<
Radio
color
=
"
primary
"
icon
=
{
<
ThumbnailNavigationRightIcon
/>
}
checkedIcon
=
{
<
ThumbnailNavigationRightIcon
/>
}
/>
}
label
=
"
Right
"
label
=
"
Right
"
labelPlacement
=
"
bottom
"
labelPlacement
=
"
bottom
"
/>
/>
...
@@ -64,6 +66,24 @@ export default class WindowThumbnailSettings extends Component {
...
@@ -64,6 +66,24 @@ export default class WindowThumbnailSettings extends Component {
}
}
}
}
/**
* @private
*/
function
ThumbnailNavigationBottomIcon
(
props
)
{
return
(
<
VideoLabelIcon
/>
);
}
/**
* @private
*/
function
ThumbnailNavigationRightIcon
(
props
)
{
return
(
<
VideoLabelIcon
style
=
{{
transform
:
'
rotate(-90deg)
'
}}
/
>
);
}
WindowThumbnailSettings
.
propTypes
=
{
WindowThumbnailSettings
.
propTypes
=
{
windowId
:
PropTypes
.
string
.
isRequired
,
windowId
:
PropTypes
.
string
.
isRequired
,
setWindowThumbnailPosition
:
PropTypes
.
func
.
isRequired
,
setWindowThumbnailPosition
:
PropTypes
.
func
.
isRequired
,
...
...
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