Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nos Hs2023
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Språksamlingane
stadnamn
Nos Hs2023
Commits
430dfecd
Commit
430dfecd
authored
3 years ago
by
esikkala
Browse files
Options
Downloads
Patches
Plain Diff
Update temporal map slidr styles
parent
1eccef1e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/client/components/facet_results/TemporalMap.js
+1
-1
1 addition, 1 deletion
src/client/components/facet_results/TemporalMap.js
src/client/components/facet_results/TemporalMapTimeSlider.js
+12
-12
12 additions, 12 deletions
src/client/components/facet_results/TemporalMapTimeSlider.js
with
13 additions
and
13 deletions
src/client/components/facet_results/TemporalMap.js
+
1
−
1
View file @
430dfecd
import
React
,
{
Component
}
from
'
react
'
import
PropTypes
from
'
prop-types
'
import
withStyles
from
'
@mui/styles/withStyles
'
;
import
withStyles
from
'
@mui/styles/withStyles
'
import
intl
from
'
react-intl-universal
'
import
ReactMapGL
,
{
NavigationControl
,
FullscreenControl
}
from
'
react-map-gl
'
import
DeckGL
,
{
ScatterplotLayer
}
from
'
deck.gl
'
...
...
This diff is collapsed.
Click to expand it.
src/client/components/facet_results/TemporalMapTimeSlider.js
+
12
−
12
View file @
430dfecd
import
React
from
'
react
'
import
withStyles
from
'
@mui/styles/withStyles
'
;
import
withStyles
from
'
@mui/styles/withStyles
'
import
PropTypes
from
'
prop-types
'
import
Slider
from
'
@mui/material/Slider
'
import
{
BaseControl
}
from
'
react-map-gl
'
...
...
@@ -26,8 +26,8 @@ const styles = () => ({
width
:
28
,
backgroundColor
:
'
#fff
'
,
boxShadow
:
iOSBoxShadow
,
marginTop
:
-
12
,
marginLeft
:
-
14
,
//
marginTop: -12,
//
marginLeft: -14,
'
&:focus,&:hover,&$active
'
:
{
boxShadow
:
'
0 3px 1px rgba(0,0,0,0.1),0 4px 8px rgba(0,0,0,0.3),0 0 0 1px rgba(0,0,0,0.02)
'
,
// Reset on touch devices, it doesn't add specificity
...
...
@@ -35,14 +35,6 @@ const styles = () => ({
boxShadow
:
iOSBoxShadow
}
}
},
sliderValueLabel
:
{
left
:
'
calc(-50% + 12px)
'
,
top
:
-
22
,
'
& *
'
:
{
background
:
'
transparent
'
,
color
:
'
#fff
'
}
}
})
...
...
@@ -258,7 +250,6 @@ class TemporalMapTimeSlider extends BaseControl {
classes
=
{{
root
:
classes
.
sliderRoot
,
thumb
:
classes
.
sliderThumb
,
valueLabel
:
classes
.
sliderValueLabel
,
track
:
classes
.
sliderTrack
,
rail
:
classes
.
sliderRail
}}
...
...
@@ -270,6 +261,15 @@ class TemporalMapTimeSlider extends BaseControl {
step
=
{
1
}
valueLabelDisplay
=
'
on
'
valueLabelFormat
=
{
this
.
_sliderValueText
}
sx
=
{{
'
&.MuiSlider-valueLabel
'
:
{
left
:
'
-50%
'
,
'
& *
'
:
{
background
:
'
transparent
'
,
color
:
'
#fff
'
}
}
}}
/
>
{
/*
<div className="slider-labels-container">
...
...
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