[WEB-2442] fix: Timeline Improvements and bug fixes (#5922)
* improve auto scroller logic * fix drag indicator visibility on for blocks * modify timeline store logic and improve timeline scrolling logic * fix width of block while dragging with left handle * fix block arrow direction while block is out of viewport
This commit is contained in:
parent
a88a39fb1e
commit
724adeff5c
15 changed files with 128 additions and 60 deletions
|
|
@ -1,8 +1,7 @@
|
|||
import { autorun } from "mobx";
|
||||
// Plane-web
|
||||
import { RootStore } from "@/plane-web/store/root.store";
|
||||
import { BaseTimeLineStore, IBaseTimelineStore } from "@/plane-web/store/timeline/base-timeline.store";
|
||||
// Store
|
||||
import { CoreRootStore } from "@/store/root.store";
|
||||
|
||||
export interface IIssuesTimeLineStore extends IBaseTimelineStore {
|
||||
isDependencyEnabled: boolean;
|
||||
|
|
@ -11,7 +10,7 @@ export interface IIssuesTimeLineStore extends IBaseTimelineStore {
|
|||
export class IssuesTimeLineStore extends BaseTimeLineStore implements IIssuesTimeLineStore {
|
||||
isDependencyEnabled = true;
|
||||
|
||||
constructor(_rootStore: CoreRootStore) {
|
||||
constructor(_rootStore: RootStore) {
|
||||
super(_rootStore);
|
||||
|
||||
autorun((reaction) => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { autorun } from "mobx";
|
||||
// Store
|
||||
import { CoreRootStore } from "@/store/root.store";
|
||||
import { RootStore } from "@/plane-web/store/root.store";
|
||||
import { BaseTimeLineStore, IBaseTimelineStore } from "ce/store/timeline/base-timeline.store";
|
||||
|
||||
export interface IModulesTimeLineStore extends IBaseTimelineStore {
|
||||
|
|
@ -10,7 +10,7 @@ export interface IModulesTimeLineStore extends IBaseTimelineStore {
|
|||
export class ModulesTimeLineStore extends BaseTimeLineStore implements IModulesTimeLineStore {
|
||||
isDependencyEnabled = false;
|
||||
|
||||
constructor(_rootStore: CoreRootStore) {
|
||||
constructor(_rootStore: RootStore) {
|
||||
super(_rootStore);
|
||||
|
||||
autorun((reaction) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue