Restore tick centering
parent
d9e5ff6549
commit
e2c24de1be
|
@ -23,7 +23,7 @@
|
||||||
<div v-for="tick of visibleTicks" :key="tick.key"
|
<div v-for="tick of visibleTicks" :key="tick.key"
|
||||||
class="tick"
|
class="tick"
|
||||||
:class="{ 'dash': !tick.text }"
|
:class="{ 'dash': !tick.text }"
|
||||||
:style="{ transform: `translateY(${tick.top}px)` }">
|
:style="{ transform: `translateY(calc(${tick.top}px - 50%))` }">
|
||||||
|
|
||||||
<span v-if="tick.text">{{ tick.text }}</span>
|
<span v-if="tick.text">{{ tick.text }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -428,7 +428,6 @@ export default class ScrollerManager extends Mixins(GlobalMixin) {
|
||||||
right: 9px;
|
right: 9px;
|
||||||
top: 0;
|
top: 0;
|
||||||
transition: transform 0.2s linear;
|
transition: transform 0.2s linear;
|
||||||
transform: translateY(-50%);
|
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
&.dash {
|
&.dash {
|
||||||
|
|
Loading…
Reference in New Issue