fix single color
This commit is contained in:
parent
9f446139be
commit
4cc3bd0835
1 changed files with 2 additions and 0 deletions
|
|
@ -327,5 +327,7 @@ class Week(models.Model):
|
|||
colors.append(f'hsl({color}, 80%, 15%, 0.8)')
|
||||
else:
|
||||
colors.append(f'hsl({color}, 50%, 15%, 0.8)')
|
||||
if len(colors) == 1:
|
||||
colors.append(colors[0].replace('80%', '50%'))
|
||||
return 'linear-gradient(to bottom, %s)' % ', '.join(colors)
|
||||
return ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue