[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:
rahulramesha 2024-10-29 13:42:14 +05:30 committed by GitHub
parent a88a39fb1e
commit 724adeff5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 128 additions and 60 deletions

View file

@ -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) => {

View file

@ -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) => {