Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
quiver-frontend-local
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
subugoe
OCR-D
quiver-frontend-local
Commits
c8d2f4d9
Commit
c8d2f4d9
authored
1 year ago
by
Paul Pestov
Browse files
Options
Downloads
Patches
Plain Diff
feat: center y-axis title in timeline detail chart
parent
b0e4b7c3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/workflows/timeline/BaseTimelineDetailedChart.vue
+2
-3
2 additions, 3 deletions
...mponents/workflows/timeline/BaseTimelineDetailedChart.vue
src/components/workflows/timeline/TimelineItem.vue
+2
-2
2 additions, 2 deletions
src/components/workflows/timeline/TimelineItem.vue
with
4 additions
and
5 deletions
src/components/workflows/timeline/BaseTimelineDetailedChart.vue
+
2
−
3
View file @
c8d2f4d9
...
...
@@ -88,10 +88,9 @@ function render([data, startDate, endDate, maxY]) {
// Append y-axis title on the left
svg
.
append
(
"
text
"
)
.
attr
(
"
text-anchor
"
,
"
end
"
)
.
attr
(
"
transform
"
,
"
rotate(-90)
"
)
.
attr
(
"
y
"
,
marginLeft
-
30
)
.
attr
(
"
x
"
,
marginTop
-
50
)
.
attr
(
"
x
"
,
-
(
height
/
2
+
marginTop
)
)
.
text
(
props
.
yAxisTitle
??
''
)
.
attr
(
'
fill
'
,
colors
.
gray
[
'
400
'
])
...
...
@@ -207,7 +206,7 @@ watch([() => props.data, () => props.startDate, () => props.endDate, () => props
<
style
lang=
"scss"
scoped
>
:deep
(
.svg-container
)
{
.svg-container
:deep
(
svg
)
{
.releases-group
{
.tag-name
{
font-size
:
10px
;
...
...
This diff is collapsed.
Click to expand it.
src/components/workflows/timeline/TimelineItem.vue
+
2
−
2
View file @
c8d2f4d9
...
...
@@ -55,8 +55,8 @@ function hideParametersOverlay() {
}"
>
<template
v-slot:header
>
<div
class=
"flex w-full px-4"
>
<h2
class=
"w-1/2 text-xl font-bold flex-shrink-0"
>
{{
gt
.
label
}}
</h2>
<div
class=
"flex w-full px-4
pb-2
"
>
<h2
class=
"w-1/2 text-xl font-bold flex-shrink-0
truncate"
:title=
"gt.label
"
>
{{
gt
.
label
}}
</h2>
<div
class=
"w-1/2 flex justify-end"
>
<div
class=
"flex overflow-x-auto"
>
<MetricAverageChart
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment