mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
use svg for slider thumb
This commit is contained in:
parent
a1619dee93
commit
50ca632822
2 changed files with 5 additions and 4 deletions
|
|
@ -115,7 +115,9 @@ const Slider = ({ className, value, minimumValue, maximumValue, onSlide, onCompl
|
|||
<div className={styles['track-before']} style={{ width: `calc(100% * ${thumbPosition})` }} />
|
||||
</div>
|
||||
<div className={styles['layer']}>
|
||||
<div className={styles['thumb']} style={{ marginLeft: `calc(100% * ${thumbPosition})` }} />
|
||||
<svg className={styles['thumb']} style={{ marginLeft: `calc(100% * ${thumbPosition})` }} viewBox={'0 0 100 100'}>
|
||||
<circle cx={'50'} cy={'50'} r={'50'} />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ html.active-slider-within {
|
|||
.slider-container {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
overflow: visible;
|
||||
cursor: pointer;
|
||||
|
||||
.layer {
|
||||
|
|
@ -37,10 +36,10 @@ html.active-slider-within {
|
|||
}
|
||||
|
||||
.thumb {
|
||||
flex: none;
|
||||
width: var(--thumb-size);
|
||||
height: var(--thumb-size);
|
||||
border-radius: 50%;
|
||||
transform: translateX(-50%);
|
||||
background-color: var(--thumb-color);
|
||||
fill: var(--thumb-color);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue