Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
04de4bdd
Commit
04de4bdd
authored
Apr 09, 2021
by
Tristan Read
Committed by
Olena Horal-Koretska
Apr 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix on-call schedule timeline width calculation
parent
8d1e9432
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ee/app/assets/javascripts/oncall_schedules/components/schedule/components/schedule_timeline_section.vue
...ponents/schedule/components/schedule_timeline_section.vue
+3
-2
ee/changelogs/unreleased/tr-oncall-schedule-fix-width-calc.yml
...angelogs/unreleased/tr-oncall-schedule-fix-width-calc.yml
+5
-0
No files found.
ee/app/assets/javascripts/oncall_schedules/components/schedule/components/schedule_timeline_section.vue
View file @
04de4bdd
<
script
>
import
{
GlResizeObserverDirective
}
from
'
@gitlab/ui
'
;
import
{
PRESET_TYPES
}
from
'
ee/oncall_schedules/constants
'
;
import
{
PRESET_TYPES
,
TIMELINE_CELL_WIDTH
}
from
'
ee/oncall_schedules/constants
'
;
import
updateTimelineWidthMutation
from
'
ee/oncall_schedules/graphql/mutations/update_timeline_width.mutation.graphql
'
;
import
DaysHeaderItem
from
'
./preset_days/days_header_item.vue
'
;
import
WeeksHeaderItem
from
'
./preset_weeks/weeks_header_item.vue
'
;
...
...
@@ -37,7 +37,8 @@ export default {
this
.
$apollo
.
mutate
({
mutation
:
updateTimelineWidthMutation
,
variables
:
{
timelineWidth
:
this
.
$refs
.
timelineHeaderWrapper
.
offsetWidth
,
timelineWidth
:
this
.
$refs
.
timelineHeaderWrapper
.
getBoundingClientRect
().
width
-
TIMELINE_CELL_WIDTH
,
},
});
},
...
...
ee/changelogs/unreleased/tr-oncall-schedule-fix-width-calc.yml
0 → 100644
View file @
04de4bdd
---
title
:
Fix the oncall schedule timeline width calc
merge_request
:
58973
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment