Skip to content

Commit 3f39d86

Browse files
feat: changes needed for ff integration
1 parent 9cd53f9 commit 3f39d86

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/bar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,10 @@ export default class Bar {
286286
const bar = this.$bar;
287287
const handle_width = 3;
288288
this.handles = [];
289-
if (!this.gantt.options.readonly_dates) {
289+
if (
290+
!this.gantt.options.readonly_dates &&
291+
!this.gantt.options.fixed_duration
292+
) {
290293
this.handles.push(
291294
createSVG('rect', {
292295
x: bar.getEndX() - handle_width / 2,

src/defaults.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const DEFAULT_OPTIONS = {
149149
popup_on: 'click',
150150
readonly_progress: false,
151151
readonly_dates: false,
152+
fixed_duration: false,
152153
readonly: false,
153154
scroll_to: 'today',
154155
show_expected_progress: false,

src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,6 @@ export default class Gantt {
700700

701701
const index = Math.floor(x / this.config.column_width);
702702
const targetCell = columns[index];
703-
console.log(this.options);
704703
if (!targetCell) return null;
705704

706705
const match = targetCell.className.match(/date_(\d{4}-\d{2}-\d{2})/);

src/styles/gantt.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import './light.css';
22

33
.gantt-container {
4+
isolation: isolate;
45
line-height: 14.5px;
56
position: relative;
67
overflow: auto;
@@ -18,7 +19,7 @@
1819
padding: 10px;
1920
border-radius: 5px;
2021
width: max-content;
21-
z-index: 1000;
22+
z-index: 2;
2223

2324
& .title {
2425
margin-bottom: 2px;
@@ -76,7 +77,6 @@
7677
top: 0;
7778
left: 0;
7879
border-bottom: 1px solid var(--g-row-border-color);
79-
z-index: 1000;
8080
}
8181

8282
& .lower-text,
@@ -125,7 +125,6 @@
125125
right: 0;
126126
float: right;
127127

128-
z-index: 1000;
129128
line-height: 20px;
130129
font-weight: 400;
131130
width: max-content;
@@ -182,13 +181,12 @@
182181
position: absolute;
183182
background: var(--g-today-highlight);
184183
width: 1px;
185-
z-index: 999;
186184
}
187185

188186
& .current-ball-highlight {
189187
position: absolute;
190188
background: var(--g-today-highlight);
191-
z-index: 1001;
189+
z-index: 1;
192190
border-radius: 50%;
193191
}
194192

@@ -203,7 +201,6 @@
203201
top: 0;
204202
left: 0;
205203
opacity: 0;
206-
z-index: 1000;
207204
background: --g-weekend-label-color;
208205
border-radius: 5px;
209206
padding: 2px 5px;
@@ -346,7 +343,7 @@
346343
}
347344

348345
.grid-column:hover {
349-
fill:rgba(150, 150, 150, 0.05) !important;
346+
fill:rgba(49, 49, 49, 0.05) !important;
350347
transition: fill 0.1s ease;
351348
}
352349
}

0 commit comments

Comments
 (0)