mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 13:29:12 -05:00
[UI] Fix misalignment of authors for repo acctivity
- Regression of #4571
- We aren't showing the ticks generated by chartjs, because we want to
show the avatar of the person instead. You can't *realy* disable that
tick, so instead I opted to make them transparent in #4571, however they
still affected the generation of ticks so if enough authors were being
shown, for some the ticks were being skipped. Adjust the settings to
make sure they are always being shown.
- Resolves https://codeberg.org/forgejo/forgejo/issues/4982
(cherry picked from commit 72f41306c2
)
This commit is contained in:
parent
1a4c399652
commit
a6c74df161
1 changed files with 10 additions and 1 deletions
|
@ -68,7 +68,16 @@ const sfc = {
|
|||
display: false,
|
||||
},
|
||||
ticks: {
|
||||
color: 'transparent', // Disable drawing of labels on the x-axis.
|
||||
// Disable the drawing of the labels on the x-asis and force them all
|
||||
// of them to be 'shown', this avoids them being internally skipped
|
||||
// for some data points. We rely on the internally generated ticks
|
||||
// to know where to draw our own ticks. Set rotation to 90 degree
|
||||
// and disable autoSkip. autoSkip is disabled to ensure no ticks are
|
||||
// skipped and rotation is set to avoid messing with the width of the chart.
|
||||
color: 'transparent',
|
||||
minRotation: 90,
|
||||
maxRotation: 90,
|
||||
autoSkip: false,
|
||||
},
|
||||
},
|
||||
y: {
|
||||
|
|
Loading…
Reference in a new issue